Skip to content
Tcl Source Code History Of Ticket 218356
Login

History Of Ticket 218356

Artifacts Associated With Ticket 218356

  1. Ticket change [a04e61cc89] (rid 96783) by nobody on 2000-10-26 00:56:38:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 4136 Bug
      Version: 8.2.3
      SubmitDate: '2000-02-07'
      LastModified: '2000-02-07'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows NT
      OSVersion: Windows NT Service Pack 6a
      Machine: Various Intel PC class machines
      FixedDate: '2000-10-25'
      ClosedDate: '2000-02-07'
      
      
      Name:
      Dwaine Gonyier
      
      Extensions:
      Binary tcl 8.2.3 distribution for Win32 from scriptics.com
      
      ReproducibleScript:
      proc opensock {addr} {
        global sfp
        while [catch {set sfp [socket $addr 19]} err] {
          puts "Trying to open socket at [clock format [clock seconds]]"
          puts "Error is $err"
        }
      }
      
      ObservedBehavior:
      This code is part of a script to be used in a test environment
      where IP connections can be lost due to remote stations leaving
      the network, etc.   This proc is to be called when the existing
      connection is lost, the idea being that the loop will retry forever
      until the connection is reestablished. What I have found on WinNT
      is that when the connection is lost and this proc is called, there
      is a delay for the first pass through this loop because the socket
      is actually trying to open. When it times out because the 
      remote host is not available, the loop start executing really
      fast with no delay as though the socket call is giving up right
      away, even if the remote host has since become available and
      can be PINGed from another command prompt on the same station
      executing this script.
      
      I have used this same code with tcl 8.2.3
      compiled on AIX 4.3.3 without any problems--the loop executes with
      a delay for each pass as each socket attempt times out and once
      the remote station becomes available, the connection is successfully
      opened.
      
      Under WinNt, I have added an after xxxx statement to the loop to 
      see if it is some type of spin condition, but it didn't help.
      
      BTW, this problem can be simulated by trying to connect to a host IP
      that doesn't exist.
      
      DesiredBehavior:
      Under win32, the socket command should actually try to connect
      each time and not always immediately "give up" after the first
      time a connection attempt fails.
      
      
      
      The user didn't put {}s around the while condition, making it
      essentially a constant of 1. 
      -- 02/07/2000 hobbs
      
    4. foundin initialized to: "final: 8.2.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Failed socket open prevents future attempts."
    11. type initialized to: "Bug"
  2. Ticket change [3353794d98] (rid 106572) by welch on 2000-10-26 08:20:08:

    1. closedate changed to: "2000-10-26T01:20:08"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [8980521ab8] (rid 132036) by dgp on 2001-04-23 04:00:53:

    1. closedate changed to: "2001-04-22T21:00:53"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "27. Channel Types"