Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ac69acf9dcf63ec5dbdaa42ca3f9954b14191f7
Ticket: 1437595fffffffffffffffffffffffffffffffff
WinSock cores/hangs on thread or app exit
User & Date: vasiljevic on 2006-03-10 20:40:23
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Ah, Andreas. regarding your hint about lazy handling
    the socket subsystem init/teardown, the answer is
    unfortunately NO, rather than yes.
    
    Why?
    
    Because this thing will just needlessly init/teardown
    the subsystem exactly 1000 times which is 999 times 
    too much:
    
      time {close [socket $host $port]} 1000
     
    if there are no other sockets opened in
    the process. 
    
    I believe we should keep explicit teardown.
    
    I also believe we should introduce explicit
    init as well, rather than checkin the state
    of the subsystem all the time by the InitSockets().
    This new call can be part of the Tcl lib bootstrap
    during initialization of the IO subsystem. This
    way it will be symetric and easy to understand.
    
    What do you think?
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"