* 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. -DaveThread Previous