Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: keepalives with Net::Server

by MiggyMan (Sexton)
on Jun 01, 2010 at 12:29 UTC ( [id://842595]=note: print w/replies, xml ) Need Help??


in reply to Re: keepalives with Net::Server
in thread keepalives with Net::Server

That's pretty much what I want to do, what I'm lacking is the mechanism to send the keepalives on regular intervals since net::server is connection based (and thus has no timed event(s))

Replies are listed 'Best First'.
Re^3: keepalives with Net::Server
by sierpinski (Chaplain) on Jun 01, 2010 at 12:34 UTC
    That's where the IO::Socket can come into play. Have your daemon send a keepalive bit (it could be some symbol that would never occur in your normal data transmission) and have the other daemon listen for that, and if it finds it, just throw it away. But that communication would cause the connection to persist. Both daemons would have to do this to keep both of them alive. The transmission of even one bit should be enough, I'd think.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found