Skip to content

Commit 3699cce

Browse files
committed
Async connect
1 parent 241ecb7 commit 3699cce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Query/Executor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function generateId()
9999

100100
protected function createConnection($nameserver, $transport)
101101
{
102-
$fd = stream_socket_client("$transport://$nameserver");
102+
$fd = stream_socket_client("$transport://$nameserver", $errno, $errstr, 0, STREAM_CLIENT_CONNECT | STREAM_CLIENT_ASYNC_CONNECT);
103103
stream_set_blocking($fd, 0);
104104
$conn = new Connection($fd, $this->loop);
105105

0 commit comments

Comments
 (0)