Skip to content

Commit

Permalink
Merge branch 'connect-timeout'
Browse files Browse the repository at this point in the history
  • Loading branch information
cboden committed Oct 19, 2017
2 parents b86d04e + 83b51c6 commit a53f6c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class Connector {

public function __construct(LoopInterface $loop, ConnectorInterface $connector = null) {
if (null === $connector) {
$connector = new \React\Socket\Connector($loop);
$connector = new \React\Socket\Connector($loop, [
'timeout' => 20
]);
}

$this->_loop = $loop;
Expand Down

0 comments on commit a53f6c5

Please sign in to comment.