Net-SSH2 - SFTP Connection issue

Posted on Fri Feb 9 22:10:42 2007 by cole
SFTP Connection issue

Hi all - I'm having an interesting issue with trying to read a file across an sftp connection. Namely, if I try to call ->read on a file that I open across the sftp connection, the connection no longer seems to be available for other traffic.

After the first read in, all subsequent stats calls (or read calls, if I were trying them) fail with a "Resource temporarily unavailable" in $!, a 0 in $sftp->error and SSH_FX_OK in $ssh2->error. The interesting bit is that if I remove the read call, it gets rid of the problem (even if I leave the ->open call in).

Anybody have any thoughts?

Write a response