andoma Posted June 23, 2013 Report Share Posted June 23, 2013 It seems to me that BitTorrent Sync (1.1.15 on OS X) does not bind the SSDP (used for UPnP/DLNA) port using SO_REUSEADDR.This prohibits other UPnP apps on the same host from receiving SSDP packets (ie, those apps does not function at all). Those other apps will fail to bind (Address already in use).Most unix like systems allows multiple processes to bind the same UDP multicast port if all of them set SO_REUSEADDR before binding.Also see: http://stackoverflow.com/questions/577885/uses-of-so-reuseaddrPlease fix this and I'll be an even more happy user of this awesome tool./andoma Quote Link to comment Share on other sites More sharing options...
sergey@bt Posted June 24, 2013 Report Share Posted June 24, 2013 In OSX you have to use both SO_REUSEADDR and SO_REUSEPORT. BTSync sets these flags for SSDP listen socket. But if some other app doesn't use SO_REUSEPORT (since SO_REUSEADDR is enough in Linux), it will fail to bind to the same port. Quote Link to comment Share on other sites More sharing options...
andoma Posted June 24, 2013 Author Report Share Posted June 24, 2013 In OSX you have to use both SO_REUSEADDR and SO_REUSEPORT. BTSync sets these flags for SSDP listen socket. But if some other app doesn't use SO_REUSEPORT (since SO_REUSEADDR is enough in Linux), it will fail to bind to the same port.I stand corrected. Thanks for the info! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.