chokepoint / pytinydns

PYTinyDNS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reuse Socket (On new Linux kernel 3.9 +)

gordol opened this issue · comments

https://lwn.net/Articles/542629/

Basically do this, and you can spawn multiple processes to listen on the same port/socket for concurrency.

Just set SO_REUSEPORT = 1 when defining your socket.

Feature added in latest commit.