mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Increased Socket buffer size
This commit is contained in:
@@ -39,6 +39,9 @@ class UDPSocket{
|
|||||||
$this->unblock();
|
$this->unblock();
|
||||||
}else{
|
}else{
|
||||||
if(socket_bind($this->sock, $serverip, $port) === true){
|
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->unblock();
|
||||||
$this->connected = true;
|
$this->connected = true;
|
||||||
}else{
|
}else{
|
||||||
|
Reference in New Issue
Block a user