Skip to content

Commit 263bfa6

Browse files
committed
Merge branch 'refs/heads/0.3' into 0.4
Conflicts: CHANGELOG.md src/Stream/Buffer.php
2 parents 36a5d1b + 19bc0c4 commit 263bfa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Connection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public function handleData($stream)
2121
public function handleClose()
2222
{
2323
if (is_resource($this->stream)) {
24+
// http://chat.stackoverflow.com/transcript/message/7727858#7727858
2425
stream_socket_shutdown($this->stream, STREAM_SHUT_RDWR);
26+
stream_set_blocking($this->stream, false);
2527
fclose($this->stream);
2628
}
2729
}

0 commit comments

Comments
 (0)