Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4671bdc3d759e8e0c4e1db805c1fb80c566dfe54
Ticket: 1028264fffffffffffffffffffffffffffffffff
socket: failed write prevents read
User & Date: ferrieux on 2009-01-06 00:30:39
Changes

  1. icomment:
    Further analysis shows that WSACleanup() could be omitted altogether.
    But before resorting to such extremes, I'd like to understand comments saying that Tcl_FinalizeThread makes the IO subsystem unavailable: it is just the channels of this thread+interp, or the whole IO subsystem ? If the latter, how are things supposed to work with the Thread extension spawning several threads+interps, each with several opened channels at [exit]-time ?
    
    In an idea world, we'd have 3 categories of exit handlers called in this order:
       (a) "early" process-wide stuff
       (b) thread-specific handlers, for each thread in turn (pthread_atexit)
       (c) "late" process-wide stuff
    
    Currently the WSACleanup occurs in (a) and (b) (!), I'd first shift it to (c).
    The only problem being that the (c) class currently is static (no CreateXXHandler API).
    Do you agree on this picture ?
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"