Skip to content

Commit

Permalink
Merge pull request #113 from Bilge/ms-seconds
Browse files Browse the repository at this point in the history
Corrected error message unit scale (ms -> seconds)
  • Loading branch information
trowski authored Jan 30, 2024
2 parents c3b518f + 2365476 commit d949e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DnsConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class DnsConfig

private array $knownHosts;

private float $timeout = 3;
private float $timeout = 3; // seconds.

private int $attempts = 2;

Expand Down
2 changes: 1 addition & 1 deletion src/Rfc1035StubDnsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function query(string $name, int $type, ?Cancellation $cancellation = nul
}

throw new DnsTimeoutException(\sprintf(
"No response for '%s' (%s) from any nameserver within %d ms after %d attempts, tried %s",
"No response for '%s' (%s) from any nameserver within %d seconds after %d attempts, tried %s",
$name,
DnsRecord::getName($type),
$this->config->getTimeout(),
Expand Down

0 comments on commit d949e1f

Please sign in to comment.