Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2006 17:16:54 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet tcp_usrreq.c
Message-ID:  <200611221716.kAMHGsmY013192@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
sam         2006-11-22 17:16:54 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_usrreq.c 
  Log:
  Change error codes returned by protocol operations when an inpcb is
  marked INP_DROPPED or INP_TIMEWAIT:
  o return ECONNRESET instead of EINVAL for close, disconnect, shutdown,
    rcvd, rcvoob, and send operations
  o return ECONNABORTED instead of EINVAL for accept
  
  These changes should reduce confusion in applications since EINVAL is
  normally interpreted to mean an invalid file descriptor.  This change
  does not conflict with POSIX or other standards I checked. The return
  of EINVAL has always been possible but rare; it's become more common
  with recent changes to the socket/inpcb handling and with finer-grained
  locking and preemption.
  
  Note: there are other instances of EINVAL for this state that were
        left unchanged; they should be reviewed.
  
  Reviewed by:    rwatson, andre, ru
  MFC after:      1 month
  
  Revision  Changes    Path
  1.142     +6 -6      src/sys/netinet/tcp_usrreq.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611221716.kAMHGsmY013192>