qt5base-lts/tests/auto/network/socket/qtcpserver
Robin Burchell a84b42e619 Fix QTcpServer::listen() returning true when the port is in use on OS X.
Way back in the mists of time, someone added SO_REUSEPORT to socket binding,
which was great, because otherwise it meant that multiple UDP sockets couldn't
share the same port on OS X (as platforms with SO_REUSEPORT apparently don't
support rebinding with SO_REUSEADDR).

However: SO_REUSEPORT also means that *any* bind on a port will succeed, which
is most definitely not wanted in the case of TCP sockets, so check the socket
type before performing the actual bind.

Also test that multiple listens don't take effect.

Change-Id: I2f8d450bcfb8a7f3abd8918a4e789a850281dd13
Done-with: Thiago Macieira
Done-with: Shane Kearns
Task-number: QTBUG-6305
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
2012-04-02 14:52:48 +02:00
..
crashingServer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test Re-enabled tests 2011-10-26 02:58:36 +02:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
qtcpserver.pro Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
tst_qtcpserver.cpp Fix QTcpServer::listen() returning true when the port is in use on OS X. 2012-04-02 14:52:48 +02:00