mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +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:
parent
c567ed4b7a
commit
16965fa742
@ -97,7 +97,7 @@ final class ConsoleReaderThread extends Thread{
|
|||||||
if($sub === false){
|
if($sub === false){
|
||||||
throw new AssumptionFailedError("Something has gone horribly wrong");
|
throw new AssumptionFailedError("Something has gone horribly wrong");
|
||||||
}
|
}
|
||||||
$client = stream_socket_accept($server);
|
$client = stream_socket_accept($server, 15);
|
||||||
if($client === false){
|
if($client === false){
|
||||||
throw new AssumptionFailedError("stream_socket_accept() returned false");
|
throw new AssumptionFailedError("stream_socket_accept() returned false");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user