bugGNUstep - Bugs: bug #36684, GSSocketStream...


You are not allowed to post comments on this tracker with your current authentication level.

bug #36684: GSSocketStream scheduleInRunLoop:forMode: does not

Submitted by:  Thomas Davie <beelsebob>
Submitted on:  Tue 19 Jun 2012 12:25:08 PM UTC  
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Works For Me
Privacy:  Public Assigned to:  None
Open/Closed:  Declined

Sun 08 Jul 2012 02:51:28 PM UTC, comment #1: 

I can't reproduce this and the sequence of operations described is precisely the normal usage used in the NSStream regression tests ... so it's done evey time anyone runs the testsuite (in Tests/base/NSStream/socket.m for instance).

Perhaps if the reporter can provide source code for a minimal example/test to reproduce the problem (and details of the system the problem happened on), we can investigate ...  but at the moment my best guess woud be that the problem might actually have been something like failing to run the runloop rather than a bug in base.

Richard Frith-Macdonald <CaS>
Project Member
Tue 19 Jun 2012 12:25:08 PM UTC, original submission:  

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.

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.

Thomas Davie <beelsebob>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by beelsebob (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-07-08 CaS StatusNone => Works For Me
        Open/ClosedOpen => Declined

    Back to the top

    Powered by Savane 3.5