[Development] QAbstractSocket::ShareAddress, SO_REUSEADDR and SO_REUSEPORT

Thiago Macieira thiago.macieira at intel.com
Thu Nov 3 16:37:55 CET 2016


Em quinta-feira, 3 de novembro de 2016, às 07:14:50 PDT, Charles-François 
Natali escreveu:
> Hello,
> 
> I'm not familiar with the Qt development process so apologies if it's not
> the correct list, but I'd like to know if someone could have a look at this
> issue: https://bugreports.qt.io/browse/QTBUG-33419

This is the right list.

> Basically  QAbstractSocket::ShareAddress uses SO_REUSEPORT on recent-ish
> Linux kernels, and unfortunately it doesn't have the same semantics as
> SO_REUSEADDR, which broke several valid use cases.
> 
> The bug report contains more details and a proposed patch.

Unfortunately, non-trivial patches can't be accepted via the bugtracker.

Anyway, we decided to use the SO_REUSEPORT semantic because it makes most 
sense with the explanation given in the documentation and with behaviour found 
on other platforms.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list