> -----Original Message-----
> From: libssh2-devel-boun...@cool.haxx.se 
> [mailto:libssh2-devel-boun...@cool.haxx.se] On Behalf Of Peter Stuge
> Sent: Thursday, September 17, 2009 2:40 PM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: libss2 debug level
> 
> Xu, Qiang (FXSGSC) wrote:
> > [libssh2] 0.815792 SFTP: Data begin - Packet Length: 1399157876
> 
> $ printf '%x\n' 1399157876
> 53657474
> $ printf '\x53\x65\x74\x74\n'
> Sett
> 
> 
> ..or it could be the "Setting" message issue that was just 
> discussed on this list. That is still pending. Feel free to 
> look into it!

It is found that the "echo" command in my startup script is the black hand: 
==============================================
...
if ( $OSTYPE == "solaris") then
        echo "Setting PATH for ${OSTYPE}"
        ...
else if ( $OSTYPE == "linux") then
        echo "Setting PATH for ${OSTYPE}"
        ...
else
        echo "Unknown OStype. Please contact your SA."
endif
...
==============================================
Even though the echoed string is changed from "Setting ..." to "abc" or any 
other characters, the sftp error (SFTP packet too large) persists. So it seems 
it is not related to the string "Setting". The problem is resolved only when 
all the echo commands in the startup script are commented out.

Shouldn't it be considered a bug of libssh2 library?

By the way, in the successful session below: 
==============================================
q...@durian(pts/1):~/opensrc/libssh2-1.2/example/simple[40]$ ./sftp 
13.198.98.190 qxu fair123 /home/qxu
...
[libssh2] 1.005801 Failure Event: -31 - SFTP Protocol Error
...
all done
==============================================
Is this "Failure Event: -31 - SFTP Protocol Error" critical?

Thanks,
Xu Qiang
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to