forked from containers/aardvark-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coredns: work on tcp requests concurrently
Right now for a single network all requests where processed serial and with tcp a caller is able to block us for a long time if it just opens the connection but sends very little or no data. To avoid this always spawn a new task if we accept a new tcp connection. We could do the same for udp however my testing with contrib/perf/run.sh has shown that it slows things down as the overhead of spawning a task is greater than the few quick simple map lookups so we only spawn where needed. We still have to spawn when forwarding external requests as this can take a long time. Fixes containers#500 Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information
Showing
1 changed file
with
86 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters