[Pvfs2-developers] Re: [Pvfs2-cvs] commit by slang in pvfs2/src/io/bmi/bmi_tcp: bmi-tcp.c sockio.c

Pete Wyckoff pw at osc.edu
Tue Dec 11 12:13:12 EST 2007


slang at mcs.anl.gov wrote on Tue, 11 Dec 2007 10:24 -0600:
> From a practical perspective, this seems to work, and an implementation 
> that has poll telling us that bytes are ready, but recv returning 
> EWOULDBLOCK because of anything other than small timing issues in the 
> kernel seems broken anyway.
>
> The alternative is to return the bytes received with the errno, and on 
> EAGAIN, we would have to add the operation back onto the op queue with a 
> state variable of how much was received.  The code is designed to avoid 
> doing this in the first place by polling until the bytes we need are ready, 
> so doing this would probably be messy.

Totally agree with your analysis and checkin.

		-- Pete


More information about the Pvfs2-developers mailing list