Bug 29889

Summary: Please set SO_REUSEADDR on TCP listen sockets
Product: dbus Reporter: Thomas Themel <freedesktop-bugs>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED DUPLICATE QA Contact: John (J5) Palmieri <johnp>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch vs HEAD

Description Thomas Themel 2010-08-30 10:21:43 UTC
Created attachment 38316 [details] [review]
Patch vs HEAD

Hi,

when creating TCP listen sockets, DBus doesn't currently set SO_REUSEADDR on the listen socket. This is somewhat annoying when restarting dbus-daemon because one has to wait for the TIME_WAIT sockets from former clients to disappear before starting the new dbus-daemon (or it will fail out with EADDRINUSE).

Patch is trivial, see attachment.
Comment 1 Thomas Themel 2010-08-31 02:53:31 UTC
Apparently, this is a duplicate of #28838, but the patch has not yet found its way to master.

*** This bug has been marked as a duplicate of bug 28838 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.