Date: Wed, 9 Jun 2010 12:45:52 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: perryh@pluto.rain.com Cc: freebsd-hackers@freebsd.org, tss@iki.fi Subject: Re: close() failing with ECONNRESET Message-ID: <20100609094552.GE83316@deviant.kiev.zoral.com.ua> In-Reply-To: <4c0f442f.N55MZNOTsFpdxLGx%perryh@pluto.rain.com> References: <1276001507.6691.388.camel@kurkku.sapo.corppt.com> <4c0f442f.N55MZNOTsFpdxLGx%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--6B9BisSCoMvigduU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 09, 2010 at 12:35:11AM -0700, perryh@pluto.rain.com wrote: > Timo Sirainen <tss@iki.fi> wrote: >=20 > > I see that since FreeBSD 6.3 close() can fail with: > > > > > [ECONNRESET] The underlying object was a stream socket that was > > > shut down by the peer before all pending data was > > > delivered. > > > > Could someone explain what this is useful for? Note that any return from close(2) that does not set errno to EBADF closes the supplied file descriptor. Mentioned errno value supplies caller with the information that not "all pending data was delivered". >=20 > Consistency with SIGPIPE, perhaps? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --6B9BisSCoMvigduU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkwPYtAACgkQC3+MBN1Mb4hH/gCg4ze0bLXxApA1dTt2JF1g9dT/ pxoAniY32ks/6UJpj6A4y3b789qQCIx2 =4Nz6 -----END PGP SIGNATURE----- --6B9BisSCoMvigduU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100609094552.GE83316>