mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
networking scalability tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31449 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
566d84d19f
commit
40a72c52a9
2 changed files with 9 additions and 1 deletions
|
@ -920,7 +920,9 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
return nil;
|
||||
}
|
||||
|
||||
if (listen(net, 256) == -1)
|
||||
/* We try to allow a large number of connections.
|
||||
*/
|
||||
if (listen(net, 10000) == -1)
|
||||
{
|
||||
NSLog(@"unable to listen on port - %@", [NSError _last]);
|
||||
(void) close(net);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue