Skip to content

Commit a53f6c5

Browse files
committed
Merge branch 'connect-timeout'
2 parents b86d04e + 83b51c6 commit a53f6c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Connector.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class Connector {
1717

1818
public function __construct(LoopInterface $loop, ConnectorInterface $connector = null) {
1919
if (null === $connector) {
20-
$connector = new \React\Socket\Connector($loop);
20+
$connector = new \React\Socket\Connector($loop, [
21+
'timeout' => 20
22+
]);
2123
}
2224

2325
$this->_loop = $loop;

0 commit comments

Comments
 (0)