cURL / Mailing Lists / curl-library / Single Mail


Re: sftp multi thread init question

From: ΑυΣ’Ξ° <>
Date: Mon, 24 Feb 2014 09:56:05 +0800

ok, I modify my code and add sleep(1) after create threads .
Now all of the threads init successfully. It does not return 2.
It seems that if init too many at one time , it will init fail.

------------------ Original ------------------
From: "daniel";<>;
Date: Fri, Feb 21, 2014 06:53 PM
To: "libcurl development"<>;

Subject: Re: sftp multi thread init question

On Fri, 21 Feb 2014, ?????? wrote:

>> I suspect a third party library failure somehow.
> Maybe you are right. The libssh2's libssh2_session_handshake(x,y) cause the
> code 2.
> How to fix it ? Can you give me some advice?

I don't know what the problem is so I can't tell how to fix it. You probably
need to dig in and see why libssh2_session_handshake() returns that failure.
It doesn't seem to have that many ways to fail at except for out of memory...


List admin:

List admin:
Received on 2014-02-24