in reply to Getting Client to Disconnect
The single model when it gets the "disconnect" string should shut down the client and restart in a loop within the server_run_type function.
As you currently have it, the server will wait for a new client connection after having closed the old connection. This is due to the loop
while ( my $client = $server->accept( ) ) { ... }
If you want it to return from sub server_run_single after the first connection has been closed, just don't use a loop, but rather simply
my $client = $server->accept();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting Client to Disconnect
by gokuraku (Monk) on Dec 18, 2007 at 12:30 UTC |