Subject: [ libssh2-Bugs-2854355 ] ssh daemon refuses tcp connection if file size 14MB or more

[ libssh2-Bugs-2854355 ] ssh daemon refuses tcp connection if file size 14MB or more

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 08 Sep 2009 17:43:59 +0000

Bugs item #2854355, was opened at 2009-09-08 15:47
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2854355&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP
Group: v1.0 (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andre (schmittty)
>Assigned to: Daniel Stenberg (bagder)
Summary: ssh daemon refuses tcp connection if file size 14MB or more

Initial Comment:
Hi!

Currently I have an issue to copy files bigger than 14MB from remote host to local host (this barrier might differ on other) if I use the libssh2 library via libssh2_scp_recv() api call. Smaller files less than 14 MB are copied without an issue from remote host to local host. Furthermore scp command from shell doesn't show any issue by copying files above 14MB size. For the test the attached source “scp.c” from the example/simple is used with small modification.

The if I look to the libssh2 debug information and tcp trace I see that the ssh daemon refuses the tcp connection by TCP RESET flag. Currently I don’t have further trace information from ssh daemon, about it this quite strange that the ssh daemon refuse the tcp connection when more bytes need to be exchanged between the peers.

I hope you can let me know root cause for the “scp - libssh2” issue.

System information:
- Sun Solaris Sparc 64-bit
- Openssl library is compiled with 64-bit (for sparcv9)
- libssh2 is compiled with 64-bit (with CFLAG=m64)
- libssh2 used Openssl library
- Issue is observed if files are exchanged on single machine and between two Sun Solaris machines.

Please let me know if you need further information.

Thanks for your help in advance.
 Andre

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-09-08 19:43

Message:
so does the UNMODIFIED scp.c example work?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2854355&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-09-08