canadaone has asked for the wisdom of the Perl Monks concerning the following question:
I hope I was clear enough. Thanks for any helpwhile(1){ while(sysread($sock, $content, 512)){ . . . #some stuff } $sock->close(); $sock = IO::Socket::INET->new (PeerAddr => 'localhost', PeerPo +rt => '8902', Type => SOCK_STREAM, Proto => 'tcp', Reuse => 1, + KeepAlive => 1, ); die "Could not create socket: $!\n" unless $sock; . . . }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Socket Keep Alive
by talexb (Chancellor) on Sep 17, 2007 at 17:31 UTC | |
|
Re: Socket Keep Alive
by almut (Canon) on Sep 17, 2007 at 17:49 UTC | |
by Anonymous Monk on Sep 18, 2007 at 10:40 UTC |