Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ac342e1240e4eae7c47cbc80e01b6c7a14dedd8b
Ticket: 1437595fffffffffffffffffffffffffffffffff
WinSock cores/hangs on thread or app exit
User & Date: vasiljevic on 2006-03-15 05:25:25
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    This does not sound very deterministic to me. I would never
    trust such a system. Why 20 secs? Why not 10 or 100 or 1000?
    
    I do not believe this is the right way to go.
    
    I guess if the thread needs that long time (20 secs in that case is
    almost forever) to start up, then something is wrong with the 
    computer and there  is no reason to continue.
    If a thread A wants/needs to start the thread B then it must
    wait forever if needed. Because if it really waits forever 
    then you have some other problem. I see it this way:
    somebody wants to use socket communication. For that Windows
    needs a helper thread: If this thread is not started then we need
    to Tcl_Panic! See the example of the notifier fhread. If this thread
    does not start, would you also wait 20 secs and declare threading
    communication useless or would you panic the system? Fortunately
    the wise designer of that part decided to Tcl_Panic which is the
    only correct way to go. 
    Why relaxing that behaviour for sockets?
    
    Please understand: the simplest thing for me is to go and put that
    timeout back there. But I'm still not convinced that would be the
    right solution.
    
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"