Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Telnet session disconnect testing

by gman (Friar)
on Jan 13, 2010 at 15:34 UTC ( [id://817199]=note: print w/replies, xml ) Need Help??


in reply to Telnet session disconnect testing

Are you sure your not getting any sort of disconnect string? Does the remote server allow more then one session? If so you can setup another process to connect and if it fails, restart your initial connection after some sort of delay.

I have done some billing feeds like this which where one way communications, and had to restart my connection, if I received no data within a certain time frame. Maybe try using alarm?

http://perldoc.perl.org/functions/alarm.html

Replies are listed 'Best First'.
Re^2: Telnet session disconnect testing
by bajangerry (Sexton) on Jan 13, 2010 at 15:48 UTC

    Thanks for the response gman,

    There is not disconnection string that I am aware of. This is one way communication and one of the models of PBX will only allow a single connection to the port.

    I will look into this alarm but still not sure how I would implement it in the same script as the capture processes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found