mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Increased Socket buffer size
This commit is contained in:
parent
710ed5c704
commit
f1cb29cc8b
1 changed files with 3 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue