Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Support for reuseport for UNIX sockets

Closed / Fixed0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696Created 10 years agoUpdated 4 years ago
Descriptionplain2016-11-17 17:13:28
Support for reuseport for UNIX sockets.
The new socket option allows multiple sockets on the same host to bind to the same port, and is intended to improve the performance of multithreaded network server applications running on top of multicore systems.

Without reuseport, you get the error: "couldn't open socket: address already in use"

New patch attached.
Referenced by1
jan.nijtmansplain2016-11-18 13:44:37
Thanks for this submission. The patch as-is is not usable, as it would change the behavior (eating an error-message, which some people expect). At least, an option needs to be implemented somewhere (--reuseport or so), so the behavior is switchable.
cklein Ticket [0b9d3ba2ba]: 3 changes [History diff]2016-11-18 21:30:33
jan.nijtmansplain2016-11-22 10:09:03
Opened branch "tip-456", which can be used for this feature development.

I'll be happy to be the sponsor of this TIP.
jan.nijtmansplain2022-10-28 22:47:52
TIP #456 is final now
Log in (anonymous is fine) to add a comment.