yyfrankyy/h2dns

On timeout Response answer is empty

Closed this issue · 2 comments

if timeout occurs, for whatever reason.
Response code is noerror with empty answer.
make dns asking Application understand

Response received from 127.0.0.1:
Answer section:
No A-Records found for github.com

because res.end(); is still called After if (output && output.Answer) {}

can there be added something like
.on('timeout', RETRY Request?
than respond with res.end(); inside end of "if (output && output.Answer) {}"

HI, I added another responseCode=2 if any error occurs before res.end().

98ccc88#diff-607692532d26968b9251fefed20a6b15R141

this should be fixed in a way.

retry is a good suggestion but the strategy needs more discussion, such as retry interval, retry times, etc..

retry is introduced in 7335318