<?xml version="1.0" encoding="windows-1252"?>
<node id="980902" title="Net SFTP Foreign backend ssh2 Put not working for large files LIBSSH2_ERROR_SOCKET_NON(-1) transport read" created="2012-07-10 12:59:20" updated="2012-07-10 12:59:20">
<type id="115">
perlquestion</type>
<author id="907516">
neoryan</author>
<data>
<field name="doctext">
Hello Monks, I have a script which does SFTP from Windows box using Net SFTP Foreign backend ssh2, but i am getting error "Bad remote message received". Getting following error when full debugging mode is ON - Error: read failed: LIBSSH2_ERROR_SOCKET_NON(-1): transport read. I also did turn on full debugging mode and below is the output from full debuging mode. Script works fine for smaller files (I tried &lt; 1 MB), but when i tried with file approx 750 MBs, it is giving me error after 15-45 mins of script run time. Version info is - OS - Windows Server 2003, Perl v5.10.0, Net-SFTP-Foreign - 1.73, Net-SFTP-Foreign-Backend_SSH2 - 0.05. Please let me know if any more information is needed. Thanks in advance.
 &lt;p&gt;
 &lt;code&gt;

#2388 1341858308.00000 _get_msg: waiting for message... [32]
#2388 1341858308.00000 _do_io: 1070 bytes written to SSH channel
#2388 1341858311.00000 _sysreadn: 4 bytes read from SSH channel
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _set_status: _set_status code: 7, str: Connecti
+on lost
#2388 1341860452.00000 _set_error: _set_err code: 37, str: read failed
+: LIBSSH2_
ERROR_SOCKET_NONE (-1): transport read
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _get_msg: waiting for message... [32]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _queue_msg: queueing msg len: 30, code:4, id:67
+1426 ... [
33]
00 00 00 1e 04 00 0a 3e c2 00 00 00 15 2d 31 30 35 32 33 34 34 39 31 3
+4 2d 32 34
 33 31 30 30 34 | .......&gt;.....-1052344914-2431004
34 33
                | 43
#2388 1341860452.00000 _get_msg: waiting for message... [33]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _close: closing file handle, return: -, rid:
2d 31 30 35 32 33 34 34 39 31 34 2d 32 34 33 31 30 30 34 34 33
                | -1052344914-243100443
#2388 1341860452.00000 DESTROY: Net::SFTP::Foreign::FileHandle=GLOB(0x
+22c1524)-&gt;
DESTROY called (sftp: Net::SFTP::Foreign=HASH(0x3acdc))
#2388 1341860452.00000 _queue_msg: queueing msg len: 30, code:4, id:67
+1427 ... [
34]
00 00 00 1e 04 00 0a 3e c3 00 00 00 15 2d 31 30 35 32 33 34 34 39 31 3
+4 2d 32 34
 33 31 30 30 34 | .......&gt;.....-1052344914-2431004
34 33
                | 43
#2388 1341860452.00000 _get_msg: waiting for message... [34]
#2388 1341860452.00000 _conn_lost: _conn_lost
#2388 1341860452.00000 _close: closing file handle, return: -, rid:
2d 31 30 35 32 33 34 34 39 31 34 2d 32 34 33 31 30 30 34 34 33
                | -1052344914-243100443
Error: read failed: LIBSSH2_ERROR_SOCKET_NON
+E (-1): tr
ansport read.
#2388 1341860453.00000 DESTROY: Net::SFTP::Foreign=HASH(0x3acdc)-&gt;DEST
+ROY called
 (current pid: 2388, disconnect_by_pid: )
#2388 1341860453.00000 disconnect: Net::SFTP::Foreign=HASH(0x3acdc)-&gt;d
+isconnect
called (ssh pid: )
#2388 1341860453.00000 _conn_lost: _conn_lost
&lt;/code&gt;
&lt;/p&gt;</field>
</data>
</node>
