I use fork()Perl on Windows (ActivePerl) for the base socket server, but apparently there are problems (it will not accept connections after several times), is there a workaround?
Here is part of the relevant code:
while($client = $bind->accept()) {
$client->autoflush();
if(fork()){ $client->close(); }
else { $bind->close(); new_client($client); exit(); }
}
source
share