Author: rfm
Date: Thu May  1 10:08:39 2014
New Revision: 37824

URL: http://svn.gna.org/viewcvs/gnustep?rev=37824&view=rev
Log:
fix initial state of incoming connection streams

Modified:
    libs/base/trunk/ChangeLog
    libs/base/trunk/Source/GSSocketStream.m

Modified: libs/base/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=37824&r1=37823&r2=37824&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog   (original)
+++ libs/base/trunk/ChangeLog   Thu May  1 10:08:39 2014
@@ -1,3 +1,8 @@
+2014-05-01  Richard Frith-Macdonald <[email protected]>
+
+       * 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 <[email protected]>
        * Source/NSKeyValueCoding.m
          Fix exception msg in setValue:forUndefinedKey:

Modified: libs/base/trunk/Source/GSSocketStream.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/GSSocketStream.m?rev=37824&r1=37823&r2=37824&view=diff
==============================================================================
--- libs/base/trunk/Source/GSSocketStream.m     (original)
+++ libs/base/trunk/Source/GSSocketStream.m     Thu May  1 10:08:39 2014
@@ -2566,6 +2566,12 @@
       [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)


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to