mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Ignorew writabel descriptor when we have nothng to write
This commit is contained in:
parent
f7aa3a940a
commit
a5a1ef0413
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2023-05-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSFileHandle.m: Ignore notificaton that a descriptor is
|
||||
writable if we have nothing to be written.
|
||||
|
||||
2023-04-26 Frederik Seiffert <frederik@algoriddim.com>
|
||||
|
||||
* Tests/base/NSFileManager/general.m:
|
||||
|
@ -6,14 +11,14 @@
|
|||
implementation not working correctly if directory did not match
|
||||
current working directory.
|
||||
|
||||
2022-04-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
2023-04-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSSocketPort.m: set listening socket into non-blocking mode
|
||||
if possible, so if multiple threads are using the same port we don't
|
||||
get one thread blocked waiting for an accept which was handled by
|
||||
another one.
|
||||
|
||||
2022-03-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
2023-03-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTimer.m: wrap call to block in exception handler (bug #289)
|
||||
|
||||
|
|
|
@ -2221,6 +2221,11 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
NSString *operation;
|
||||
NSMutableDictionary *info;
|
||||
|
||||
if ([writeInfo count] == 0)
|
||||
{
|
||||
NSLog(@"%@ is writable but has nothing to write", self);
|
||||
return;
|
||||
}
|
||||
info = [writeInfo objectAtIndex: 0];
|
||||
operation = [info objectForKey: NotificationKey];
|
||||
if (operation == GSFileHandleConnectCompletionNotification
|
||||
|
|
Loading…
Reference in a new issue