cloudflarearchive / odoh-server-go

Oblivious DoH server in Go
MIT License
66 stars 17 forks source link

Connection reuse #21

Open mschirrmeister opened 3 years ago

mschirrmeister commented 3 years ago

Hello,

I noticed that the odoh-server creates a new TCP connection for each incoming query to the server(s) defined in the variable nameServers. Even if the connection from the previous query still exists. Is it planned to implement some kind of connection reuse for performance reasons? Or is the idea to always run it next to a recursive resolver in the same local network, where the time for the tcp handshake can be ignored? But even in this situation, connection reuse could be a good thing.

chris-wood commented 3 years ago

Is it planned to implement some kind of connection reuse for performance reasons? Or is the idea to always run it next to a recursive resolver in the same local network, where the time for the tcp handshake can be ignored? But even in this situation, connection reuse could be a good thing.

Yes, this is still planned! We would also welcome PRs, should you have free cycles to spare. :-)

mschirrmeister commented 2 years ago

I am unfortunately no developer :-(, otherwise I would definitely spare some time.