|
|
Log in / Subscribe / Register

The SO_REUSEPORT socket option

The SO_REUSEPORT socket option

Posted Mar 14, 2013 10:55 UTC (Thu) by jezuch (subscriber, #52988)
In reply to: The SO_REUSEPORT socket option by kugel
Parent article: The SO_REUSEPORT socket option

> I guess it was not feasible to fix "multiple servers accept() on the same socket" to distribute connections more evenly?

My thought exactly.

Also:

"Incoming connections and datagrams are distributed to the server sockets using a hash based on the 4-tuple of the connection—that is, the peer IP address and port plus the local IP address and port. (...) This eases the task of conducting stateful conversations between the client and server."

It is presented as an "implementation detail" so I guess one should not be surprised if it stops working this way sometime in the future? :)


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds