cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sftp multi thread init question

From: ΑυΣ’Ξ° <506017026_at_qq.com>
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";<daniel_at_haxx.se>;
Date: Fri, Feb 21, 2014 06:53 PM
To: "libcurl development"<curl-library_at_cool.haxx.se>;

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...

--

  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-24