www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: [libssh2] meaning of -37 "Failed getting banner" / "Unable to exchange encryption keys" /

Re: [libssh2] meaning of -37 "Failed getting banner" / "Unable to exchange encryption keys" /

From: TJ Saunders <tj_at_castaglia.org>
Date: Thu, 26 Apr 2012 10:56:55 -0700 (PDT)

> With your method, the error message is 'Resource temporarily unavailable'
> (!)
>
> Digging deeper, I found two remarkable things:
>
> 1) session->api_timeout == 0
> ... might be due to the interface (no session->api_timeout set??), but this
> doesn't seem to lead to program interruption.
>
> 2) in session.c::_libssh2_wait_socket(), line 632 HAVE_POLL holds...
>
> rc = poll(sockets, 1, has_timeout?ms_to_next: -1);
>
> returns -1, which directly leads to LIBSSH2_ERROR_TIMEOUT.
>
> Any idea??

From that "Main: TIMEOUT" message you reported, it sounds like your
application (which is using libssh2) has some sort of overall
timeout/timer set. Is it possible that that timer is being exceeded
unexpectedly, or set too short?

TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Mankind will not be reasoned out of the feelings of humanity.

           -Sir William Blackstone

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-26

the libssh2 team