develooper Front page | perl.perl5.porters | Postings from May 2004

Re: [perl #29019] nonblocking read returns EAGAIN at eof

Thread Previous
David Muir Sharnoff
May 5, 2004 01:36
Re: [perl #29019] nonblocking read returns EAGAIN at eof
Message ID:
* It behaves as expected for me at least (sysread returns 0) (5.8.2 though).
* Are you sure you wait until the socket is readable (it takes a little bit
* of time for the EOF to propegate) ? Can you provide a demonstration ?

No demonstration because...

I retract my original report.  I had an 

	if ($! = EAGAIN) {

test..  Not so good.  My code has moved on from there but I
think it was returning EBADF which is quite a bit more 

Sorry about that. 

I've tried to switch from read()/eof() to sysread() in my module.
The switch is still in-progress.  Too much is non-deterministic 
for it to be easy to debug.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About