Skip to content
Tcl Source Code History Of Ticket 2812527
Login

History Of Ticket 2812527

Artifacts Associated With Ticket 2812527

  1. Ticket change [5e14e461a5] (rid 115578) by russellbell on 2009-06-26 03:17:44:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I've found a bug in the ftp client library 2.4.8 that bites
      when a connection is closed.  When you call ::ftp::Close $handle
      you sometimes get a TCL exception (thrown in an event handler
      so a catch around ::ftp::Close doesn't help) and sometimes
      you get an endless loop.  Depends on the ftp server you're
      talk to and doesn't happen consistently, but enough to be
      annoying.
      
      The faulty code is about line 35 of ::ftp::StateHandler which
      does "set number [gets $sock bufline]".  This code reads
      a continuation line, so normally isn't called after the
      socket is closed, but sometimes it is and an exception is
      the result.  Fix is to wrap in a catch, easy enough.
      
      But then the second bug bites - this code is in a loop and
      if the gets returns <= 0, the loop is infinite.  Fix is to
      break from the loop, and change the code structure a little
      to ensure "if { [eof $ftp(CtrlSock)] } ..." gets called
      in this case.
      
      I believe this is a separate issue to 1076923 found by Keith
      Vetter - that was the gets on line 16 of ::ftp::StateHandler.
      
      If it's helpful I can provide source for my fix to ftp 2.4.8,
      [email protected]
      
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "russellbell"
    10. subsystem initialized to: "55. Other Tools"
    11. title initialized to: "ftp library - connection close"
    12. type initialized to: "Bug"
  2. Ticket change [4df16eacb0] (rid 127147) by dgp on 2009-06-26 23:57:52:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2009-06-26T16:57:52"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      
      The ftp package is over in the tcllib project.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "dgp"