Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b8896ba95d59deeb67f843ca411702bd5c2ac1c2
Ticket: 719790ffffffffffffffffffffffffffffffffff
fcopy -command hangs in Win NT4
User & Date: davygrvy on 2006-03-10 15:14:26
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    > I have seen fcopy hang after about 100 chunks (1MB) which
    > maybe points to some timing issue (difficult!).
    
    I have seen winsock itself hang from just the same thing. 
    And I don't mean tclWinsock.c, I mean the OS interface to
    sockets.
    
    If you want explosion proof sockets on windows, Tcl doesn't
    have what it takes..  There.. I said it..  And it isn't
    something that is repairable.  WSAAsyncSelect is the
    problem, and it is internal to the OS.  Think, "bad data in"..
    
    WSAAsyncSelect has a well known problem under load where it
    drops notifications to socket events.  It is most
    problematic, I found, with listening sockets.  After enough
    drops, all socket activity for the process halts and the
    process needs to be restarted.
    
    The best way to fix Tcl's winsock implementation is to
    replace it with a different notification model such as
    WSAEventSelect or IOCP.
    
    Or just use this in the meantime:
    http://sf.net/projects/iocpsock
    
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"