SSH_FXP_STATUS messages block for an inordinate amount of time



When I upload via SFTP with FlashFXP or Mindterm's FTP<->SFTP wrapper,
I'm able to get upload / downloads speeds of around 500kbps. When I
try it with my own SFTP implementation, however, my upload speed is
cut in half. My question is why? When I upload, I send one
SSH_FXP_WRITE message of packet size (16384) size and wait for the
SSH_FXP_STATUS message back. For a 1mb file, that's 64 SSH_FXP_STATUS
responses. Problem is, a lot of these SSH_FXP_STATUS messages block
for a tenth of a second if not more. By itself, a tenth of a second
isn't a whole lot, but they add up fast. Indeed, the twenty-two most
time consuming messages to either send or receive are these
SSH_FXP_STATUS messages and in all, these twenty-two messages are
costing me 2.89 seconds. For a 1mb file, 2.89 seconds is a lot.

Any ideas as to what the problem might be?
.



Relevant Pages

  • Detecting sftp batch upload errors
    ... I am trying to write a script that will handle automated file ... transfers to and from an sftp server, ... When the upload is successful, ...
    (comp.security.ssh)
  • Re: Good sftp server?
    ... FDL on the files that I upload to convert it into STREAM_LF format. ... > it except for the sftp server, ...
    (comp.os.vms)
  • Re: sftp from home wireless box to work - get is much faster that put
    ... sftp from home wireless box to work - get is much faster that put ... Pretend a 5Mb download and 1 Mb upload at home. ...
    (freebsd-questions)
  • Re: Several users need to work in the same directory
    ... upload several new files using sftp, and I am wondering if they really ... have to logon again using ssh and then manually set the execution bit ... sftp doesn't do well with permission bits. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Detecting sftp batch upload errors
    ... feed it commands while it watches the responnses for the expected vs ... > transfers to and from an sftp server, ... > When the upload is successful, ... or putting in a "ls" and parsing the directory ...
    (comp.security.ssh)