URL:
<http://savannah.gnu.org/bugs/?36684>
Summary: GSSocketStream scheduleInRunLoop:forMode: does not
Project: GNUstep
Submitted by: beelsebob
Submitted on: Tue 19 Jun 2012 12:25:08 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Description:
Scheduling socket streams in the run loop does not work correctly.
Steps to reproduce:
1) create a stream pair using getStreamsToHost:port:inputStream:outputStream:
2) Setup delegates correctly, make sure that the streams are retained
correctly.
3) call -scheduleInRunLoop:[NSRunLoop currentRunLoop]
forMode:NSDefaultRunLoopMode on the two streams.
4) open the streams.
Expected results:
- stream:handleEvent: is called on the delegate for the various interesting
and exciting events that happen.
Actual results:
No messages are sent to the delegate.
Notes:
1) If -open is called before scheduling the streams in the run loop, an
NSStreamEventOpenCompleted event is sent to the delegate. No further messages
are
2) If the private method -addStream:mode: is used instead, all stream events
are forwarded correctly.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36684>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep