If you are writing to a disconnected stream socket then you will get a SIGPIPE which you can be trapped like:
You can put any code you want to reconnect and retry the send.$SIG{PIPE} = sub { print "WHoah got disconnected" };
/J\
In reply to Re: Maintain TCP client connection to server?
by gellyfish
in thread Maintain TCP client connection to server?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |