Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72bee9a94674fc65592c02939544823a631075be
Ticket: 217813ffffffffffffffffffffffffffffffffff
Windows only: Sockets may stay open on OS level after 'close
User & Date: nobody on 2000-10-26 00:44:04
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1353 Bug
    Version: 8.0.4
    SubmitDate: '1999-03-02'
    LastModified: '1999-03-02'
    Severity: SER
    Status: Closed
    Submitter: pat
    ChangedBy: pat
    OS: Windows NT
    OSVersion: 4.0
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-03-02'
    
    
    Name:
    ThomaS
    
    ReproducibleScript:
    #Observe TCP connection with netstat in a DOS-Box. Open connections have state #ESTABLISHED. 
    #
    # Assuming a socket server is running on host vmsaxp and port 7412. The local
    # host is named artemis. 
    #
    # 1) behaves fine
    set sock [socket vmsaxp 7412];
    # TCP connection  artemis:2519 has state ESTABLISHED.
    close $sock;
    # TCP connection  artemis:2519 has state TIME_WAIT or disappeared from
    # netstat list.
    #
    # 2) misbehaves.
    set sock [socket vmsaxp 7412];
    # TCP connection  artemis:2519 has state ESTABLISHED.
    exec wish80 &
    close $sock;
    # TCP connection  artemis:2519 still has the state ESTABLISHED.
    # the connection will be closed when the external process ends.
    
    ObservedBehavior:
    The TCP connection from the client to the server stays open, especially the server doesn't receive an EOF. The open socket cannot be contacted from tcl, neither from the parent shell nor from the spawned child shell.
    
    DesiredBehavior:
    After the close statement the connection should be closed. 
    
    Patch:
    Somehow the spawn process inherits the open file descriptors of its parent. I think a flag supressing this behaviour must be set when calling CreateProcess() in tclWinPipe.c.
    
    
    
    03/02/1999 16:47 - pat - duplicate of bug 1250
    
  4. foundin changed to: "obsolete: 8.0.4"
  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: "69. Other"
  10. title changed to:
    Windows only: Sockets may stay open on OS level after 'close
    
  11. type changed to: "Bug"