[libssh2] Speeding up file transfers

2007-08-08 Thread Dan Fandrich
I ran into the following paper regarding speeding up ssh file transfers: http://www.psc.edu/networking/projects/hpn-ssh/old-site/ This topic came up not too long ago on this list. The paper shows how ssh transfers in the tested client over high-speed links were limited by the TCP and SSH window s

Re: [libssh2] libssh2-0.16 hanging on scp copy

2007-08-08 Thread Daniel Stenberg
On Tue, 7 Aug 2007, Peter O'Gorman wrote: > Ok, I can repeat fairly simply on this Fedora Core 6 machine also. Me too, and I'll offer what I've learned so far (no fix yet but I'll continue tomorrow): src/transport.c:311 This is wrong. It checks if amount of already read data is less than

Re: [libssh2] indent mini script

2007-08-08 Thread Guenter Knauf
Hi, > Really my concern is that there are now several scripts in the top-level > directory; maketgz, get_ver.awk, buildconf.. That feels somewhat messy get_ver.awk is my babe, and it can live in any subdirectory of choice; no need to be in the root. Guen. -

Re: [libssh2] libssh2-0.17 infinite recv() loop at startup

2007-08-08 Thread Daniel Stenberg
On Wed, 8 Aug 2007, Sullivan, David J. wrote: > The code I provided fixes the loop in banner_receive but I prefer Satish's > socket state setting and return values, so the code change would be as below Thanks both of you! I just committed this patch, with only a minor edit. ---

Re: [libssh2] libssh2-0.17 infinite recv() loop at startup

2007-08-08 Thread Sullivan, David J.
and the lastest CVS 0.18.0-20070808). *** session.c.orig Wed Aug 8 08:23:49 2007 --- session.c Wed Aug 8 08:28:36 2007 *** *** 141,150 session->banner_TxRx_total_send = 0; return 1; } } ! i

Re: [libssh2] libssh2-0.17 infinite recv() loop at startup

2007-08-08 Thread Daniel Stenberg
On Wed, 8 Aug 2007, Satish Mittal wrote: > I had earlier reported this issue on this mailing list. I am surprised this > is still persisting till 0.17. Well, so much has changed since 0.14 so I don't think I'm alone when I simply ignore all bug reports for anything older than 0.16. > We should

Re: [libssh2] libssh2-0.17 infinite recv() loop at startup

2007-08-08 Thread Satish Mittal
Hi All, I have been using libssh2-0.14 for the past 10 months now (since last october) in my application, and dealing with its various bugs, making it compile/work on Windows and all major *nix platforms. One of the most serious bug we have encountered is the one mentioned below. It leads to an i

[libssh2] libssh2-0.17 infinite recv() loop at startup

2007-08-08 Thread Sullivan, David J.
In src/session.c, libssh2_session_startup() sets the session socket to blocking mode, calls libssh2_banner_send() then calls libssh2_banner_receive(). If the connection is dropped by the client between those two calls, libssh2_banner_receive() hard loops doing recv()'s that are returning 0. The c