fukamachi / woo

A fast non-blocking HTTP server on top of libev
http://ultra.wikia.com/wiki/Woo_(kaiju)
MIT License
1.28k stars 98 forks source link

Use SO_REUSEPORT on Linux 3.9 or above #33

Closed fukamachi closed 9 years ago

fukamachi commented 9 years ago

SO_REUSEPORT is a socket option to allow multiple processes to bind on the same port. Kernel dispatches requests to one of the processes directly, so they don't have to wake up for every requests.

In my short benchmark, it may increase the performance 1.5 times on Ubuntu 3.13.0.

ref #22