Date: Sat, 7 Dec 1996 13:13:18 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Cc: mbarkah@hemi.com (Ade Barkah) Subject: Re: bug in 2.2-alpha loopback (?) Message-ID: <199612071213.NAA18370@uriah.heep.sax.de> In-Reply-To: <199612070054.RAA12233@hemi.com> from Ade Barkah at "Dec 6, 96 05:54:48 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
As Ade Barkah wrote: > It seems that read() on a socket via the loopback interface does not > return 0 ("EOF") when the socket is broken. Instead, it returns 1, > with the data returned being '\004' (ctrl-D). I can't reproduce this with your test program: j@uriah 1455% ./bar Waiting for client on port 2000 Attention, read() returned 0. (I've telnetted to port 2000, and entered a telnet close. I thinks that's what it was meant to be.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612071213.NAA18370>