Does dnscrypt-proxy support persistent connections to DoH servers? #2060
Replies: 3 comments 2 replies
-
Friendly bump in case it was missed. |
Beta Was this translation helpful? Give feedback.
-
I think the key here is that |
Beta Was this translation helpful? Give feedback.
-
Connections are kept open until there's been zero traffic for The default value can be bumped up, but keeping tons of idle connections is not great for servers. They can stop accepting new connections even though most of the established ones are actually not in use. |
Beta Was this translation helpful? Give feedback.
-
While tracing performance issues, I noticed that dnscrypt-proxy opens a new connection to a DoH server whenever it needs to resolve a name. Afterwards the connection goes into time_wait state and is closed. That means every request opens a separate https connection which requires encryption set up what takes time. Is it possible to establish just one connection, keep it alive and use for all requests? HTTP/2 is able to handle many requests on a single connections (multiplexing) so it shouldn't be an issue. I think DoH servers would also appreciate that.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions