Commit 099d627
committed
fix: treat connection refused as transient across all DNS protocols
DoH, DoH3, and DoQ would exit immediately when a service was unavailable,
making them behave differently from regular UDP DNS. This was inconsistent
and prevented using dnsping as a monitoring tool for intermittent service
availability.
Now all protocols continue pinging when connection is refused, showing
"Connection refused" messages and collecting packet loss statistics. Makes
behavior uniform whether you're pinging over UDP, TCP, TLS, QUIC, or HTTP.1 parent 87b2285 commit 099d627
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
| |||
465 | 467 | | |
466 | 468 | | |
467 | 469 | | |
468 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| |||
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
485 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
486 | 492 | | |
487 | 493 | | |
488 | 494 | | |
| |||
0 commit comments