Date: Thu, 14 Nov 1996 17:27:43 -0800 From: John Polstra <jdp@polstra.com> To: Terry Lambert <terry@lambert.org> Cc: scrappy@ki.net, jgreco@brasil.moneng.mei.com, hackers@FreeBSD.ORG Subject: Re: Sockets question... Message-ID: <199611150127.RAA11283@austin.polstra.com> In-Reply-To: Your message of "Thu, 14 Nov 1996 18:12:13 MST." <199611150112.SAA25075@phaeton.artisoft.com> References: <199611150112.SAA25075@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> If you don't use non-blocking I/O, the read will block until the > buffer is full. Use blocking I/O, and you won't have the problem > with the reader returning before it should (or shouldn't). This is most certainly not guaranteed by the documentation. From read(2): The system guarantees to read the number of bytes requested if the descriptor references a normal file that has that many bytes left before the end-of-file, but in no other case. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611150127.RAA11283>