Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e8beaa0a9cbac1421b4a367b1fccd469d9a11d7b
Ticket: 718045ffffffffffffffffffffffffffffffffff
Closing transferred channel crashes app
User & Date: andreas_kupries on 2003-04-23 02:45:54
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Looking around in the socket code ...
    
    (1) The windows socket system maintains its own list of 
    sockets per thread ... This list is not maintained by the 
    cut/splice operations BAD !! 
    
    (2) ... David is also correct that the cut/splice operations 
    never send SOCKET_SELECT messages, which change the 
    WSAAsyncSelect status of the socket, and the association 
    with a particular notifier HWND.
    
    And this explain s the problem. The various levels have 
    inconsistent info on where the channel is. The upper layers 
    have it transfered, but in the lower layers the channel is still 
    seeen in the main thread, especially notification events arrive 
    in the main thread HWND, and not in the other thread. This 
    then causes the event to be handled in the main thread and 
    from then on we know how that crashes.
    
    Note: Mo Dejongs latests changes in this area are an 
    approximation to get this done, by introducing platform 
    specific cut/splice ops. This is good, but does not reach far 
    enough.
    
    We have essentially per channel-type/platform specific ops to 
    manage.
    
    I have to extend my proto TIP about channel type initialization 
    during channel transfer and add channel type specific 
    cut/splice ops to handle this.
    
    Can't be done in the 8.4.3. timeframe IMHO anymore. First 
    should be 8.5, eventually a backport.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"