We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36a5d1b + 19bc0c4 commit 263bfa6Copy full SHA for 263bfa6
Connection.php
@@ -21,7 +21,9 @@ public function handleData($stream)
21
public function handleClose()
22
{
23
if (is_resource($this->stream)) {
24
+ // http://chat.stackoverflow.com/transcript/message/7727858#7727858
25
stream_socket_shutdown($this->stream, STREAM_SHUT_RDWR);
26
+ stream_set_blocking($this->stream, false);
27
fclose($this->stream);
28
}
29
0 commit comments