Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 54fdd67f3917fc0199cf56fc3d2081b9341c3457
Ticket: 1329754fffffffffffffffffffffffffffffffff
sockets lose data on Windows
User & Date: dgp on 2005-10-18 18:01:37
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Attached script is demo of the problem.
    Start it in one shell window:
    
        tclsh sdtest.tcl server
    
    to start a server running.
    
    Start it in a second window:
    
        tclsh sdtest.tcl client
    
    to start a client of that server.
    
    The server shell window should
    print a sequence of messages
    it received from the client, starting
    with message 10 count down to 1.
    
    This works fine on linux and
    solaris.  On windows, the output
    does not reach message 1, but
    craps out about 4 or 5 messages
    short of all the data.  I did Windows
    testing with the ActiveTcl 8.4.11.2
    tclsh.
    
    A minor change to the client part
    of the demo script, so that the
    socket is explicitly made blocking
    *before* the final call to [flush], and
    the bug is worked around and all
    data passes through on Windows.
    
    This should not be required.  Sockets
    should not lose data on any platform.
    
  4. foundin changed to: "obsolete: 8.4.11"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "27. Channel Types"
  10. title changed to: "non-blocking sockets lose data on Windows"
  11. type changed to: "Bug"