fix initial state of incoming connection streams

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-05-01 08:08:39 +00:00
parent 3c4ff69d69
commit 152601c977
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2014-05-01 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSSocketStream.m: Set initial state of accepted incoming
connection streams to be open (otherwise we can't close them).
2014-04-26 Manuel Guesdon <mguesdon@orange-concept.com>
* Source/NSKeyValueCoding.m
Fix exception msg in setValue:forUndefinedKey:

View file

@ -2566,6 +2566,12 @@ setNonBlocking(SOCKET fd)
[outs _setAddress: addr];
[ins _setSock: acceptReturn];
[outs _setSock: acceptReturn];
[ins _setStatus: NSStreamStatusOpen];
[outs _setStatus: NSStreamStatusOpen];
/* Set property to indicate that the input stream was accepted by
* a listening socket (server) rather than produced by an outgoing
* connection (client).
*/
[ins setProperty: @"YES" forKey: @"IsServer"];
}
if (inputStream)