mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
An error in a socketpair only applies to the other socket if still opening
This commit is contained in:
parent
71e636cf49
commit
d7e5158a09
1 changed files with 10 additions and 4 deletions
|
@ -2079,9 +2079,12 @@ setNonBlocking(SOCKET fd)
|
|||
{
|
||||
errno = error;
|
||||
[self _recordError];
|
||||
[_sibling _recordError];
|
||||
[self _sendEvent: NSStreamEventErrorOccurred];
|
||||
[_sibling _sendEvent: NSStreamEventErrorOccurred];
|
||||
if ([_sibling streamStatus] == NSStreamStatusOpening)
|
||||
{
|
||||
[_sibling _recordError];
|
||||
[_sibling _sendEvent: NSStreamEventErrorOccurred];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2525,9 +2528,12 @@ setNonBlocking(SOCKET fd)
|
|||
{
|
||||
errno = error;
|
||||
[self _recordError];
|
||||
[_sibling _recordError];
|
||||
[self _sendEvent: NSStreamEventErrorOccurred];
|
||||
[_sibling _sendEvent: NSStreamEventErrorOccurred];
|
||||
if ([_sibling streamStatus] == NSStreamStatusOpening)
|
||||
{
|
||||
[_sibling _recordError];
|
||||
[_sibling _sendEvent: NSStreamEventErrorOccurred];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue