diff --git a/src/network/UDPSocket.php b/src/network/UDPSocket.php index 12a7f2ec0..069f35dc2 100644 --- a/src/network/UDPSocket.php +++ b/src/network/UDPSocket.php @@ -39,6 +39,9 @@ class UDPSocket{ $this->unblock(); }else{ if(socket_bind($this->sock, $serverip, $port) === true){ + socket_set_option($this->sock, SOL_SOCKET, SO_REUSEADDR, 0); + socket_set_option($this->sock, SOL_SOCKET, SO_SNDBUF, 65535); + socket_set_option($this->sock, SOL_SOCKET, SO_RCVBUF, 65535); $this->unblock(); $this->connected = true; }else{