Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: afee16f1867a3a4e2ee85149494c7a295068a93d
Ticket: 1437595fffffffffffffffffffffffffffffffff
WinSock cores/hangs on thread or app exit
User & Date: davygrvy on 2006-03-15 02:19:33
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    I already explained why in email.  The problem is not swept
    under the carpet.  By removing the timeout and replacing
    with infinite, you have created a situation where a deadlock
    can happen.
    
    Let's go over this again..  actually, why don't I just paste
    my email here instead..
    
    Zoran,
    
    It isn't a timer, it's a wait with a timeout.  It waits for
    the async notification window to be in a ready state for use
    by WSAAsyncSelect. If it really is taking over 20 seconds to
    create a window in a thread, something else is wrong.  The
    state left after the timeout isn't undefined.  All publics
    do the SocketsEnabled() check to see that the system is
    usable, else punt.  I don't see how using an infinite
    timeout makes it wait less for the window to become ready.
    
    If you have patches for improvements, go for it, especially
    regarding how Tcl does a tear-down.  Yes, I agree that the
    I/O system tear-down is a bit backassward.
    
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"