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

Group
 
 

bug #36684: GSSocketStream scheduleInRunLoop:forMode: does not

Submitter:  Thomas Davie <beelsebob>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
Tue 19 Jun 2012 12:25:08 PM UTC, original submission:  

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.

Thomas Davie <beelsebob>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-d3ae.
    Corresponding source code