mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
ConsoleReaderThread: override default socket timeout for accept
otherwise, people can break the console reader by setting the default timeout to zero or some other small value.
This commit is contained in:
@ -97,7 +97,7 @@ final class ConsoleReaderThread extends Thread{
|
||||
if($sub === false){
|
||||
throw new AssumptionFailedError("Something has gone horribly wrong");
|
||||
}
|
||||
$client = stream_socket_accept($server);
|
||||
$client = stream_socket_accept($server, 15);
|
||||
if($client === false){
|
||||
throw new AssumptionFailedError("stream_socket_accept() returned false");
|
||||
}
|
||||
|
Reference in New Issue
Block a user