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

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

Thread Previous
From:
David Muir Sharnoff
Date:
May 5, 2004 01:36
Subject:
Re: [perl #29019] nonblocking read returns EAGAIN at eof
Message ID:
200405050656.i456uJgv086761@idiom.com
* 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 
reasonable.

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.

-Dave

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About