-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out of order handling of tcp queries #646
Comments
A simple diff works:
but shows up in a test failure in CoreDNS (data-race on axfr), on setting specific dns.ResponseWriter fields; so that thing would indeed need a mutex, also for writing the reply back to the client. Now this only comes up when using TCP and DNS over TLS and responding to out-of-order request, for UDP we dont' care. |
@miekg This change is far more complex than adding a (Has this come up as a bottleneck somewhere?) |
[ Quoting <notifications@github.com> in "Re: [miekg/dns] out of order handli..." ]
@miekg This change is far more complex than adding a `go ` and a mutex. I can take a closer look in the morning.
(Has this come up as a bottleneck somewhere?)
No, not directly, but with DNS-over-TLS this might speed up things. I'm pretty
worried that making it faster for the DNS-over-TLS will make it slower for UDP.
Thanks for taking a look!
|
@miekg I took a look at rewriting the It's looking like it's impossible to make this work with the |
Can't be done in current architecture; also DoT is quite bad for performance etc. etc. Closing. |
Right now this is serial because: https://github.com/miekg/dns/blob/master/server.go#L567
If we put
go
in front of that it is out of order.However I'm not fully convinced the response.Writer deals ok with this; should there be a mutex there?
The text was updated successfully, but these errors were encountered: