mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix specifying a TCP listen backlog of 0 causing some systems to not accept any incoming connections. Fixes #1369.
This commit is contained in:
parent
d032050ccf
commit
c706f11f29
@ -80,7 +80,7 @@ Socket::Status TcpListener::listen(unsigned short port, const IpAddress& address
|
||||
}
|
||||
|
||||
// Listen to the bound port
|
||||
if (::listen(getHandle(), 0) == -1)
|
||||
if (::listen(getHandle(), SOMAXCONN) == -1)
|
||||
{
|
||||
// Oops, socket is deaf
|
||||
err() << "Failed to listen to port " << port << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user