Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: use sysread to read non-blocking filehandle

by Corion (Patriarch)
on Nov 04, 2014 at 13:57 UTC ( [id://1106037]=note: print w/replies, xml ) Need Help??


in reply to Re^4: use sysread to read non-blocking filehandle
in thread use sysread to read non-blocking filehandle

You could check whether you closed your session and don't expect any more data. Maybe eof could help there too.

Using these two criteria, you should be able to determine whether there was just not anything read, or whether the other end has closed the connection.

  • Comment on Re^5: use sysread to read non-blocking filehandle

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1106037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-18 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found