Skip to content

Commit b76f48d

Browse files
committed
Merge pull request #4 from armen/master
Added missing parameter of stream_set_timeout. Thanks! There should have been a test for this :D
2 parents 34e8fd0 + ca4e9f7 commit b76f48d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function setTimeout($timeout) {
2222
$this->options['timeout'] = $timeout;
2323

2424
if ($this->socket && get_resource_type($this->socket) === 'stream') {
25-
stream_set_timeout($this->socket);
25+
stream_set_timeout($this->socket, $timeout);
2626
}
2727
}
2828

0 commit comments

Comments
 (0)