[5711] in Athena Bugs

home help back first fref pref prev next nref lref last post

rt 7.1H: read(2) manual page

daemon@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Mon Aug 13 13:41:37 1990

From: qjb@ATHENA.MIT.EDU
Date: Mon, 13 Aug 90 13:41:27 -0400
To: bugs@ATHENA.MIT.EDU

System name:		soup
Type and version:	RTPC-ROMPC 7.1H
Display type:		apa16

What were you trying to do?
	Put good error checking in my code and handle the case
	where a network client's server vanished from thin air.

What's wrong:
	The read(2) manual page does not list ECONNRESET as one 
	of the possible return codes of the read() system call.
	This is the value returned in the following case:
	1.  TCP client connects to server
	2.  Server closes the socket
	3.  Client does a write() 
	4.  Client does a read()
	The read() in #4 returns ECONNRESET ("connection reset by peer")

What should have happened:
	The manual page should correctly list the possible error
	codes that read() returns.	

Please describe any relevant documentation references:
	read(2)

home help back first fref pref prev next nref lref last post