diff --git a/ChangeLog b/ChangeLog index 6ab273c29..acd7022ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-30 Richard Frith-Macdonald + + * Source/GSFileHandle.m: + Increase the backlog for the listen() call to allow more incoming + network connections. + 2010-09-30 Richard Frith-Macdonald * Source/NSURLProtocol.m: Remove excess release pointed out by diff --git a/Source/GSFileHandle.m b/Source/GSFileHandle.m index 4abe7cdf6..48b945056 100644 --- a/Source/GSFileHandle.m +++ b/Source/GSFileHandle.m @@ -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);