ssh_fxp_name

qqq zaq21wsx at rediffmail.com
Fri Oct 30 01:27:52 EST 2009


Hello,

I have a very basic sftp client which is able to successfully intialize the transport layer, password authenticate, and start the sftp subsystem. Now, I am stuck with an issue when I try to retrieve the directory listing. Sometimes I get a transport packet in which the sftp packet length field registers a length greater than the enclosing transport packet. In othet words sometimes I get a transport packet whose lenght is less than what the sftp packet length field registers. This happens only sometimes. That is, if I give SSH_FXP_READDIR commands say 30 times on the same directory, then I get this packet after around 25-30 iterations. I tried to check the readability of the socket when this happens but the server does not send anything after this and select just hangs. I am not able to think of why this is happening and would apprecaite pointers in the right direction. thanks

Ajoy

good case packet header:

00 00 07 4c 0f 5e 00 00 00 00 00 00 07 33 00 00 07 2f 68 00 00 00 02 00 00 00 11 00 00 00 01 2e 00 00 00  ...

bad case packet header:

00 00 04 9c 07 5e 00 00 00 00 00 00 04 8b 00 00 07 2f 68 00 00 00 52 00 00 00 11 00 00 00 01 2e 00 00 00  ...


More information about the openssh-unix-dev mailing list