mirror of
https://github.com/YGGverse/hl-php.git
synced 2026-03-31 17:15:39 +00:00
add socket validation
This commit is contained in:
parent
cd22acf846
commit
49c5c76908
1 changed files with 7 additions and 4 deletions
|
|
@ -19,11 +19,14 @@ class Master
|
||||||
$port
|
$port
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($this->_socket)
|
||||||
|
{
|
||||||
stream_set_timeout(
|
stream_set_timeout(
|
||||||
$this->_socket,
|
$this->_socket,
|
||||||
$timeout
|
$timeout
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue