curl-library
Re: libcurl fails with error code 56 (ssl_read) and error code 58 when server reboots and doesn't recover post reboot
Date: Thu, 23 Aug 2012 22:38:48 +0200 (CEST)
On Thu, 23 Aug 2012, Kowsik Tulabandula wrote:
> 5. Further onwards curl_easy_perform fails with error code=58, "Problem
> with the local SSL certificate (unable to use client certificate (no key
> found or wrong pass phrase?))" and never recovers after that.
When built with OpenSSL I can only find a single spot where
CURLE_SSL_CERTPROBLEM is returned and it is using a client certificate which
you don't use. It would indicate some internal confusion or overwritten memory
or similar.
Can you run your program with valgrind and see if you can detect any problem?
> memset(request, 0, 4096);
> bytes_read = fread(request, sizeof(request), 1, lFile);
> fclose(lFile);
I consider that a very dangerous operation I would do differently... but I
figure you use a smaller than 4096 bytes file to trigger this problem?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-08-23