Decreased SO_SNDBUF

This commit is contained in:
Shoghi Cervantes 2014-02-10 13:26:09 +01:00
parent 8de39db59d
commit 7e174eac5a

View File

@ -34,7 +34,7 @@ class UDPSocket{
}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, 1024 * 1024 * 8); //8MB
socket_set_option($this->sock, SOL_SOCKET, SO_SNDBUF, 1024 * 1024 * 2); //2MB
socket_set_option($this->sock, SOL_SOCKET, SO_RCVBUF, 1024 * 1024); //1MB
$this->unblock();
$this->connected = true;