Open HuuDbi opened 2 years ago
Hello, sorry for addressing this so late.
I investigated the issue and the timeout-backed cancellation token is passed correctly to the client.ConnectAsync
method as you can see here:
I fixed the NoProxyClient
case so that should also be good now, before it had a fixed 5 second timeout.
I think the problem relies on the fact that, when there is an exception such as System.Net.Sockets.SocketException | No such host is known.
, the Dns.GetHostEntry(ClientIP)
used internally is at fault. This does not support cancellation apparently. A library such as this https://github.com/MichaCo/DnsClient.NET could be used to address the issue and pass the cancellation token to the DNS operation as well.
In any case, to resolve the issue, I suggest you only use domains that resolve to an IP address. I will keep this open and investigate the use of this library to address the issue.
Version of the software
0.2.4
Operating system
win 10
Browser / Native
opera
What happened?
TCP block timeout does not work, interfering with CPM
Relevant LoliCode if needed