A simple solution would be to create the socket with SO_REUSEADDR...but I'm not sure if EasyTCP allows you to do it.
That was my first suspicion too, but Net::EasyTCP creates sockets with SO_REUSEADDR by default. From Net::Easy_TCP->_new_server():
$sock = new IO::Socket::INET( LocalPort => $para{port}, Proto => 'tcp', Listen => SOMAXCONN, Reuse => 1, );
In reply to Re^2: My daemon will not restart
by tirwhan
in thread My daemon will not restart
by graq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |