This is a Mailman mailing list bounce action notice:
List: libssh2-devel
Member: mike.norris_at_three.co.uk
Action: Subscription disabled.
Reason: Excessive or fatal bounces.
The triggering bounce notice is attached below.
Questions? Contact the Mailman site administrator at
sitelist_at_lists.sourceforge.net.
attached mail follows:
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
mike.norris_at_three.co.uk
attached mail follows:
Send libssh2-devel mailing list submissions to
libssh2-devel_at_lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
or, via email, send a message with subject or body 'help' to
libssh2-devel-request_at_lists.sourceforge.net
You can reach the person managing the list at
libssh2-devel-owner_at_lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of libssh2-devel digest..."
Today's Topics:
1. RE: Windows issues with latest snapshot (Neil Gierman)
2. "Unable to request a channel from remote host" (Ian Schorr)
3. SCP download slow (webmaster_at_keyphrene.com)
4. EAGAIN in blocking mode with auth (Jeremy Knope)
5. Re: EAGAIN in blocking mode with auth (Daniel Stenberg)
6. Re: SCP download slow (Daniel Stenberg)
7. Re: SCP download slow (webmaster_at_keyphrene.com)
8. follow up: libssh2_channel_read returns 0 when channel has
been closed (Phillip Wu)
----------------------------------------------------------------------
Message: 1
Date: Mon, 15 Jun 2009 08:57:29 -0500
From: "Neil Gierman" <ngierman_at_roadrunn.com>
Subject: RE: Windows issues with latest snapshot
To: "'libssh2 development'" <libssh2-devel_at_lists.sourceforge.net>
Message-ID: <004b01c9edc1$38d676a0$aa8363e0$@com>
Content-Type: text/plain; charset="us-ascii"
> -----Original Message-----
> From: Neil Gierman [mailto:ngierman_at_roadrunn.com]
> Sent: Sunday, June 14, 2009 8:03 PM
>
> Yes updating that line in libssh2.h line 74 to be <= 1500 instead of <=
> 1400
> also fixes the problem
>
>
Sorry for the duplicate but when I did my previous fix, I didn't test with a
completely clean sandbox.
Once I removed libssh2.h from the includes of knownhost and hostkey, then
the change regarding _MSC_VER was a problem.
Changing libssh2.h and keeping the changes to knownhost and hostkey works.
--- src\hostkey.c 2009-05-20 08:08:43.000000000 -0500
+++ src\hostkey.c 2009-06-14 19:50:53.000000000 -0500
@@ -33,13 +33,12 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*/
-#include "libssh2.h"
#include "libssh2_priv.h"
#include "misc.h"
/* Needed for struct iovec on some platforms */ #ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
--- src\knownhost.c 2009-06-10 21:02:03.000000000 -0500
+++ src\knownhost.c 2009-06-14 19:51:21.000000000 -0500
@@ -33,13 +33,12 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*/
-#include "libssh2.h"
#include "libssh2_priv.h"
#include "misc.h"
struct known_host {
struct list_node node;
char *name; /* points to the name or the hash (allocated) */
------------------------------
Message: 2
Date: Tue, 16 Jun 2009 10:44:33 +1000
From: Ian Schorr <ian.schorr_at_gmail.com>
Subject: "Unable to request a channel from remote host"
To: libssh2-devel_at_lists.sourceforge.net
Message-ID:
<99996da00906151744wb24a2abpb45e0ef6059d4cb6_at_mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello all,
I recently moved some PHP code from one server to another that uses libssh2
and the pecl ssh2 library. I'm getting some weird errors now, and wondering
if anyone has any ideas.
Sorry if this is the wrong list for this - I honestly don't know if this is
a libssh2 problem or a pecl ssh2 issue, and their website implies that the
libssh2 homepage is theirs as well...
Anyway, I have some code that does:
302: $stream=ssh2_exec($this->sshConnection, $execstring);
304: stream_set_blocking( $stream,false );
316: $line = fgets($stream);
322: fclose($stream);
...And then loops for several $execstrings. It's actually a bit more
complicated than this, I have some logic to determine when the output's
complete and to stop trying to read lines. The minimum time between open
and close is 250ms, though.
After the first time I do this, I start getting the errors:
*Warning*: ssh2_exec(): Unable to request a channel from remote host
in*utils.php
* on line *302*
*Warning*: stream_set_blocking(): supplied argument is not a valid stream
resource in *utils.php* on line *304*
*Warning*: fgets(): supplied argument is not a valid stream resource in *
utils.php* on line *316
*...It looks like the ssh connection has some problem after I close the
ssh2_exec stream.
This works fine with my old server, which has libssh2 0.13 and the pecl ssh2
0.10. New one has pecl ssh2 0.11 and I've tried libssh2 0.18, 1.0, and now
1.0.1, but with the same problem on each. I've had some problems getting
the older libraries installed on the newer system - I may take a crack at it
next and see if I can narrow down what changes are related to the problem.
Curiously the problem goes away if I set "blocking" to true. The problem
there is that it's much more difficult for me to detect and handle
situations where remote commands "hang", which is a possibility.
Has anyone seen this before? Any ideas on what might be going wrong or
debugging that could be done? Is there a more "gentle" way to tear down the
streams here?
Thanks,
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Tue, 16 Jun 2009 13:31:15 +0200 (CEST)
From: webmaster_at_keyphrene.com
Subject: SCP download slow
To: libssh2-devel_at_lists.sourceforge.net
Message-ID:
<41668.84.14.16.171.1245151875.squirrel_at_webmail.imingo.net>
Content-Type: text/plain;charset=iso-8859-1
Hi,
I have upgraded LibSSH 0.18 to LibSSH 1.1, and I have a problem during SCP
data transfer (download).
The transfer is very slow with a file of 20Mb or more.
Have you an idea?
Vincent JAULIN
LibSSH2 for Python - SSH4Py
------------------------------
Message: 4
Date: Tue, 16 Jun 2009 14:37:18 -0400
From: Jeremy Knope <jerome_at_ambrosiasw.com>
Subject: EAGAIN in blocking mode with auth
To: libssh2 development <libssh2-devel_at_lists.sourceforge.net>
Message-ID: <C4940D2E-E5A9-4824-81FA-57D74A89611C_at_ambrosiasw.com>
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
I've been seeing a problem where I get the LIBSSH2_ERROR_EAGAIN error
when trying libssh2_userauth_password(). This is only happening it
seems when connecting to localhost (maybe something equally as fast?)
The error text says would block exchanging keys.
I'm doing libssh2_set_blocking(session, 1) before doing startup & auth
though.
any thoughts?
-- jerome
------------------------------
Message: 5
Date: Wed, 17 Jun 2009 00:01:11 +0200 (CEST)
From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: EAGAIN in blocking mode with auth
To: libssh2 development <libssh2-devel_at_lists.sourceforge.net>
Message-ID: <alpine.DEB.2.00.0906170001020.13120_at_yvahk2.pbagnpgbe.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 16 Jun 2009, Jeremy Knope wrote:
> I've been seeing a problem where I get the LIBSSH2_ERROR_EAGAIN error
> when trying libssh2_userauth_password(). This is only happening it
> seems when connecting to localhost (maybe something equally as fast?)
> The error text says would block exchanging keys.
>
> I'm doing libssh2_set_blocking(session, 1) before doing startup & auth
> though.
Using 1.1? On what OS? Can you show us a complete app that repeats the problem
for you?
-- / daniel.haxx.se ------------------------------ Message: 6 Date: Wed, 17 Jun 2009 00:01:45 +0200 (CEST) From: Daniel Stenberg <daniel_at_haxx.se> Subject: Re: SCP download slow To: libssh2 development <libssh2-devel_at_lists.sourceforge.net> Message-ID: <alpine.DEB.2.00.0906170001310.13120_at_yvahk2.pbagnpgbe.fr> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Tue, 16 Jun 2009, webmaster_at_keyphrene.com wrote: > I have upgraded LibSSH 0.18 to LibSSH 1.1, and I have a problem during SCP > data transfer (download). > > The transfer is very slow with a file of 20Mb or more. > > Have you an idea? You need to tell us a lot more details. Are you for example using the scp_nonblock example to see this problem? Also, are you saying that 1.1 runs slower for you than 0.18 did? (And note that this is the libssh2 project, libssh is in fact another project and library.) -- / daniel.haxx.se ------------------------------ Message: 7 Date: Wed, 17 Jun 2009 07:24:57 +0200 From: "webmaster_at_keyphrene.com" <webmaster_at_keyphrene.com> Subject: Re: SCP download slow To: libssh2 development <libssh2-devel_at_lists.sourceforge.net> Message-ID: <4A387E29.4060803_at_keyphrene.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Yes I know, I talk only LibSSH2. I use SCP with scp_block. I had a good download transfer (SCP_Get) with 0.18 and now the transfer begins 6Mb/s, and decrease to 7Kb/s. I will make another tests and keep in touch. Vincent JAULIN Daniel Stenberg a ?crit : > On Tue, 16 Jun 2009, webmaster_at_keyphrene.com wrote: > > >> I have upgraded LibSSH 0.18 to LibSSH 1.1, and I have a problem during SCP >> data transfer (download). >> >> The transfer is very slow with a file of 20Mb or more. >> >> Have you an idea? >> > > You need to tell us a lot more details. Are you for example using the > scp_nonblock example to see this problem? Also, are you saying that 1.1 runs > slower for you than 0.18 did? > > (And note that this is the libssh2 project, libssh is in fact another project > and library.) > > ------------------------------ Message: 8 Date: Wed, 17 Jun 2009 17:01:27 +1000 From: "Phillip Wu" <Phillip.Wu_at_lands.nsw.gov.au> Subject: follow up: libssh2_channel_read returns 0 when channel has been closed To: <libssh2-devel_at_lists.sourceforge.net> Message-ID: <818F31EB6E5F99459894BE97B94639D5038B2046_at_SRV-QS-MAIL5.lands.nsw> Content-Type: text/plain; charset="us-ascii" Is it not possible for a non-blocking read to return 0 when there is no data to read but in actual fact the remote side has sent an EOF? In non-blocking mode when I get a 0, I could confirm that eof has been sent by calling libssh2_channel_eof. There could be a slight chance that I could loose data during the time delay from the eof call. So I think it would be slicker to return LIBSSH2_ERROR_CHANNEL_CLOSED rather than 0. What are your thoughts on this? -----Original Message----- From: Daniel Stenberg [mailto:daniel_at_haxx.se] Sent: Sunday, 14 June 2009 6:48 AM To: libssh2 development Subject: Re: libssh2_channel_read returns 0 when channel has been closed On Fri, 12 Jun 2009, Phillip Wu wrote: > I have looked at the code for channel_read and it appears that it returns 0 > when the remote end has closed the channel: ... > I think that the channel_read routine should return > LIBSSH2_ERROR_CHANNEL_CLOSED rather than 0. But isn't a return code of 0 basically implying that the end of the transfer is reached anyway? Can it actually return 0 in any other situation? -- / daniel.haxx.se ------------------------------------------------------------------------ ------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ libssh2-devel mailing list libssh2-devel_at_lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel *************************************************************** This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of the Department of Lands. This email message has been swept by MIMEsweeper for the presence of computer viruses. *************************************************************** Please consider the environment before printing this email. ------------------------------ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ------------------------------ _______________________________________________ libssh2-devel mailing list libssh2-devel_at_lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel End of libssh2-devel Digest, Vol 37, Issue 11 *********************************************