mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
8af7e6bf3a
commit
8c7b1d496a
7 changed files with 25 additions and 7 deletions
|
@ -39,6 +39,7 @@
|
|||
#import "Foundation/NSByteOrder.h"
|
||||
#import "Foundation/NSProcessInfo.h"
|
||||
#import "Foundation/NSUserDefaults.h"
|
||||
#import "GSNetwork.h"
|
||||
#import "GSPrivate.h"
|
||||
#import "GNUstepBase/NSObject+GNUstepBase.h"
|
||||
|
||||
|
@ -922,7 +923,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
|
||||
/* We try to allow a large number of connections.
|
||||
*/
|
||||
if (listen(net, 10000) == -1)
|
||||
if (listen(net, GSBACKLOG) == -1)
|
||||
{
|
||||
NSLog(@"unable to listen on port - %@", [NSError _last]);
|
||||
(void) close(net);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue