send problem

Patrick R. McManus mcmanus at ducksong.com
Tue May 28 18:19:57 EDT 2002


[Derek D. Martin: Tue, May 28, 2002 at 05:32:07PM -0400]
> 
> Remember, UDP is a connectionless protocol -- it does not guarantee

he's using TCP. (ESTABLISHED, FINWAIT_2, etc are TCP states).

the reason step 2 doesn't generate an error is due to his send
buffers. This is a race condition anyhow - many sends will generate
vaild packets that will generate resets - but the rst won't arrive
until you have returned from the system call. If you want
semi-immediate error notification you should poll() with POLLIN and
read the eof or POLLERR.

-P



More information about the Discuss mailing list