Tcl Source Code

View Ticket
Login
Ticket UUID: 0b9d3ba2ba3e1e3fc33c97d5a9fa7ef85d11a696
Title: Support for reuseport for UNIX sockets
Type: RFE Version:
Submitter: cklein Created on: 2016-11-17 17:13:28
Subsystem: 18. Commands M-Z Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2022-10-28 22:47:52
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2022-10-28 22:47:52
Description:
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.
User Comments: jan.nijtmans added on 2022-10-28 22:47:52:
TIP #456 is final now

jan.nijtmans added on 2016-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.nijtmans added on 2016-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.

Attachments: