Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 237cf5645e8b558ca0e3317095ade6784bd15ef6
Ticket: 719790ffffffffffffffffffffffffffffffffff
fcopy -command hangs in Win NT4
User & Date: jcw on 2003-04-11 16:44:28
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Reported by Mads Linden, for tclkit, but I don't think it's tclkit.
    
    To reproduce, run tcllib's ftpd server on Windows, fetch a file > 4 Kb.  The transfer does not complete.
    
       - server has to be Win32 (running tclkit 8.4.2), Linux works
       - client is Linux in my case (std ftp cmd)
       - transfer needs to be over 4 Kb, it seems
       - may also have to be binary (it is, in my case)
       - ftpd running on server hangs in line 1200, fcopy with -command
       - i.e. input is file, output is socket
       - tclkit 8.4.0 and 8.4.1 reported to work ok
    
    Hm, this looks like trouble in fcopy.  I changed:
    
      fcopy $f $data(sock2) -command [list ::ftpd::GetDone $sock $data(sock2) $f ""]
    
    to:
    
      fcopy $f $data(sock2)
      ::ftpd::GetDone $sock $data(sock2) $f "" [tell $f]
    
    ($f points to a file)
    
    And now, the ftp transfer works.  The data appears to come across, but the last part does not flush and it ends up deadlocked.
    
    If this is the same problem as reported by Mads Linden, then it works ok on 2k, but not XP.  I've only run a test on NT4.
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "jcw"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "fcopy -command hangs in Win NT4"
  11. type changed to: "Bug"