mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
@ -1,3 +1,9 @@
|
||||||
|
2010-09-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSFileHandle.m:
|
||||||
|
Increase the backlog for the listen() call to allow more incoming
|
||||||
|
network connections.
|
||||||
|
|
||||||
2010-09-30 Richard Frith-Macdonald <rfm@gnu.org>
|
2010-09-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSURLProtocol.m: Remove excess release pointed out by
|
* Source/NSURLProtocol.m: Remove excess release pointed out by
|
||||||
|
|
|
@ -920,7 +920,9 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
||||||
return nil;
|
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]);
|
NSLog(@"unable to listen on port - %@", [NSError _last]);
|
||||||
(void) close(net);
|
(void) close(net);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue