Closed un000 closed 1 year ago
A problem ocurres when DNS doesn't respond properly:
lookup somedomain.com.com on 16.25.25.10:53: server misbehaving
So on the metrics with timeout of 200ms it takes 7-8 seconds
https://github.com/valyala/fasthttp/blob/ffdf59d04ca2f02556308d60d37b8e77ea04484c/tcpdialer.go?plain=1#L429-L430
resolveTCPAddrs doesn't use context from the above https://github.com/valyala/fasthttp/blob/ffdf59d04ca2f02556308d60d37b8e77ea04484c/tcpdialer.go?plain=1#L283
I propose to pass it. What you think @erikdubbelboer ?
Yes that sounds like a good idea. Can you make a pull request?
Done
A problem ocurres when DNS doesn't respond properly:
So on the metrics with timeout of 200ms it takes 7-8 seconds
https://github.com/valyala/fasthttp/blob/ffdf59d04ca2f02556308d60d37b8e77ea04484c/tcpdialer.go?plain=1#L429-L430
resolveTCPAddrs doesn't use context from the above https://github.com/valyala/fasthttp/blob/ffdf59d04ca2f02556308d60d37b8e77ea04484c/tcpdialer.go?plain=1#L283
I propose to pass it. What you think @erikdubbelboer ?