mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
standardise listen backlog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31455 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4cfbd4b8c6
commit
5e71b7b87d
7 changed files with 25 additions and 7 deletions
|
@ -2444,8 +2444,6 @@ setNonBlocking(SOCKET fd)
|
|||
return Nil;
|
||||
}
|
||||
|
||||
#define SOCKET_BACKLOG 256
|
||||
|
||||
- (void) open
|
||||
{
|
||||
int bindReturn;
|
||||
|
@ -2499,7 +2497,7 @@ setNonBlocking(SOCKET fd)
|
|||
[self _sendEvent: NSStreamEventErrorOccurred];
|
||||
return;
|
||||
}
|
||||
listenReturn = listen([self _sock], SOCKET_BACKLOG);
|
||||
listenReturn = listen([self _sock], GSBACKLOG);
|
||||
if (socketError(listenReturn))
|
||||
{
|
||||
[self _recordError];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue