Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c70e0d087f98fff207348ac1133ca8e268522d82
Ticket: c6ed4acfd8ba465a8e6681297b81b995acfa7acc
Win: failing async socket connect and other sync socket connect hangs
User & Date: oehhar on 2014-12-06 18:47:48
Changes

  1. icomment:
    Thank you for the good catch.
    This issue should also be in TCl8.5 as it is part of a bug fix:
    
    Bug 336441ed59 happened as follows:
       *   A socket was opened and this open was returned to the framework
       *   The callback that the socket connected or failed was called by the OS. This was ignored, as the freshly opened socket was not jet in the tsd list
       *   The framework registers the socket into the tsd list. This is to late, as the callback already passed.
    
    As a consequence, I buffer a freshly created tsd pointer in a global memory to have it in the callback. This made a couple of workarounds unnecessary and was considered as effective by Andreas Kupries.
    
    I will check tomorrow, if the issue persists with this catch.
    
    Thank you very much. It is good not to feel so much alone...
    
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"