mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Tidyups and a performance fix for networking.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21932 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
05a94eb676
commit
fe50fce2c0
8 changed files with 10 additions and 2228 deletions
|
@ -965,7 +965,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
return nil;
|
||||
}
|
||||
|
||||
if (listen(net, 5) == SOCKET_ERROR)
|
||||
if (listen(net, 256) == SOCKET_ERROR)
|
||||
{
|
||||
NSLog(@"unable to listen on port - %s", GSLastErrorStr(errno));
|
||||
#if defined(__MINGW32__)
|
||||
|
|
2119
Source/GSTcpPort.m
2119
Source/GSTcpPort.m
File diff suppressed because it is too large
Load diff
|
@ -1284,7 +1284,7 @@ static int unique_index = 0;
|
|||
(void) close(desc);
|
||||
DESTROY(port);
|
||||
}
|
||||
else if (listen(desc, 5) < 0)
|
||||
else if (listen(desc, 128) < 0)
|
||||
{
|
||||
NSLog(@"unable to listen on port - %s", GSLastErrorStr(errno));
|
||||
(void) close(desc);
|
||||
|
|
|
@ -1629,7 +1629,7 @@ static unsigned wordAlign;
|
|||
(void) close(desc);
|
||||
DESTROY(port);
|
||||
}
|
||||
else if (listen(desc, 5) == SOCKET_ERROR)
|
||||
else if (listen(desc, 128) == SOCKET_ERROR)
|
||||
{
|
||||
NSLog(@"unable to listen on port - %s", GSLastErrorStr(errno));
|
||||
(void) close(desc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue