Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 86ceffefb534876b92221a9fee1fb23b6359fb4a
Ticket: 219205ffffffffffffffffffffffffffffffffff
missing file events on server socket under Windows
User & Date: nobody on 2000-10-26 05:03:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3409 Bug
    Version: 8.2.1
    SubmitDate: '1999-11-05'
    LastModified: '2000-02-10'
    Severity: CRIT
    Status: Assigned
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows NT
    OSVersion: 4
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Ulrich Lauther
    
    CustomShell:
    compiled a static lib; Tcl/Tk library scripts are embedded in a C-file and
    
    ObservedBehavior:
    I set up an event handler in a server gui-application which should react on
    incoming messages on a socket, concurrently to gui handling. The code looks
    similar to this:
       int handle = accept(my_socket,0,0);
       Tcl_Channel channel = Tcl_MakeTcpClientChannel((ClientData) handle);
       Tcl_RegisterChannel(my_interpreter,channel);
       Tcl_CreateChannelHandler(channel, TK_READABLE, file_callback, (void*)
    this);
    whenever input arrives at the socket, the function file_callback()
    should be called.
    This works fine under Linux, used to work in the past (< 8.1 ?) but does
    not
    reliably work under Windows. It DOES work, if I add printf()'s for each
    arriving
    message, so I suspect a timing problem.
    
    DesiredBehavior:
    See above.
    
    
    http://www.deja.com/=dnc/viewthread.xp?AN=540260481
    
    It's not certain that this is failing quite as mentioned,
    and may be due to TCP delay. 
    -- 11/10/1999 hobbs
    Another reports that this crept into Tcl between 8.0.4 and 8.2:
    
    Michael Kirkham wrote:
            ...
    > occuring in the older version of our software.  This leads me to
    > believe that the problem was introduced between Tcl 8.0.4 and 8.2.1.
    >
    > The dropped events problem is a little bit intermittent, so I am not
    > 100% certain, but I have not myself been able to observe the dropped
    > events problem with any version of our software built with Tcl 8.0.4
    > but have quite often with versions built with Tcl 8.2.2 (including a
    > version previously built with Tcl 8.0.4).
     
    -- 12/30/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "63. (unused)"
  10. title changed to: "missing file events on server socket under Windows"
  11. type changed to: "Bug"