cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURL not returning error back to application

From: Jogeshwar Karthik Akundi <ajkarthik_at_gmail.com>
Date: Wed, 15 Sep 2010 11:59:45 +0530

Hi,

CURL version info: libcurl/7.21.0 OpenSSL/1.0.0a
OS: Windows XP

We use CURL in HTTPS and CONNECT_ONLY option to connect to our server.
Once the connection is established, we keep sending our custom protocol
data.

In some cases I have been facing WSA errors 10053/10054 (I have mentioned
this error in another thread). Why it comes is a different case but here I
have one problem when this comes.

In some cases when we get this 10053/54 error, CURL doesn't send the error
back to my application.
In CURL Callback functions, I have logs in place which give me information
about CURL operation status.

The Logs below marked "CurlCBFunc" are the curl callback logs.
I have marked how my typical logs look in case of read/write failures. We
get the CURL error in the callback text once after which an error code is
returned and handled.
As we can see, in the error case, the same callback text was received at the
rate of about 50 times per microsecond and ultimately the log file went up
to 260 GB (I couldn't seek to the end of file also to retrieve the last
lines and this was on a customer machine, so we couldn't take the log for
analysis). In some cases I have seen logs going up to 10-20 GB also, though
I couldn't get the log snippets.

Error case:
[2010-Sep-10 13:06:31.804014] <message> [CurlClientSocket] - CurlCBFunc: SSL
read: error:00000000:lib(0):func(0):reason(0), errno 10053
[2010-Sep-10 13:06:31.804014] <message> [CurlClientSocket] - CurlCBFunc: SSL
read: error:00000000:lib(0):func(0):reason(0), errno 10053
[2010-Sep-10 13:06:31.804014] <message> [CurlClientSocket] - CurlCBFunc: SSL
read: error:00000000:lib(0):func(0):reason(0), errno 10053
[2010-Sep-10 13:06:31.804014] <message> [CurlClientSocket] - CurlCBFunc: SSL
read: error:00000000:lib(0):func(0):reason(0), errno 10053
[2010-Sep-10 13:06:31.804014] <message> [CurlClientSocket] - CurlCBFunc: SSL
read: error:00000000:lib(0):func(0):reason(0), errno 10053

Normal Write Error Logs (I have seen similar logs with errno=10053 also):
[2010-Sep-14 17:57:00.703828] <message> [CurlClientSocket] - CurlCBFunc:
SSL_write() returned SYSCALL, errno = 10054
[2010-Sep-14 17:57:00.703828] < error> [CurlClientSocket] - Socket Error
with CURL Error = 55. errno: 10054. Exiting

Normal Read Error Logs (I have seen similar logs with errno=10053 also):
[2010-Sep-14 17:35:06.656953] <message> [CurlClientSocket] - CurlCBFunc: SSL
read: error:00000000:lib(0):func(0):reason(0), errno 10054
[2010-Sep-14 17:35:06.656953] < error> [CurlClientSocket] - Read returning
error with curl code: 56

This makes me think that may be there is some obscure case in which things
are different from normal.

Thanks
Jogeshwar Karthik Akundi

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-15