You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -91,7 +91,7 @@ public function doQuery($nameserver, $transport, $queryData, $name)
91
91
});
92
92
}
93
93
94
-
$conn->on('data', function ($data) use ($conn, $parser, $deferred, $timer, $loop) {
94
+
$conn->on('data', function ($data) use ($conn, $parser, $deferred, $timer, $loop, $name) {
95
95
$conn->end();
96
96
if ($timer !== null) {
97
97
$loop->cancelTimer($timer);
@@ -105,7 +105,7 @@ public function doQuery($nameserver, $transport, $queryData, $name)
105
105
}
106
106
107
107
if ($response->header->isTruncated()) {
108
-
$deferred->reject(new \RuntimeException('The server returned a truncated result for the UDP query, retrying via TCP is currently not supported'));
108
+
$deferred->reject(new \RuntimeException('DNS query for ' . $name . ' failed: The server returned a truncated result for a UDP query, but retrying via TCP is currently not supported'));
$this->setExpectedException('RuntimeException', 'DNS query for ' . $query->name . ' failed: Requested transport "tcp" not available, only UDP is supported in this version');
56
+
Block\await($promise, $this->loop);
58
57
}
59
58
60
59
/** @test */
@@ -81,17 +80,8 @@ public function resolveShouldCloseConnectionWhenCancelled()
0 commit comments