cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending 16K+packets fails on windows platform with CURLE_SEND_ERROR.

From: Sundar Anantharaman <sundarama_at_gmail.com>
Date: Tue, 1 Jul 2014 00:41:10 -0700

>
> Hello,
>
> We are hitting issues while using the curl_easy_send API on windows
> platform. It return a CURLE_SEND_ERROR when we try to send a packet that
> is >16K in size. For packets smaller than that size, there is no issue.
> Stepping into the curl code, we noticed that it fails in schannel_send
> method while validating the len is greater than
> connssl->stream_sizes.cbMaximumMessage(16K). Are we doing something wrong
> or is there a suggested workaround. Also why is CURL not doing the
> chunking of packets or returning a CURLE_AGAIN after sending the 16K.
>
> We dont hit this issue on other platform like mac, ipad, where CURL
> successfully sends packets >16K.
>
> We are on 7.37.0 and below is our setup options
>
> curl_easy_setopt(m_curl, CURLOPT_CONNECT_ONLY, 1L);
>
> curl_easy_setopt(m_curl, CURLOPT_FOLLOWLOCATION, 1L);
>
> curl_easy_setopt(m_curl, CURLOPT_DEBUGFUNCTION, &curl_debug_callback);
>
> curl_easy_setopt(m_curl, CURLOPT_CAPATH, "/sdcard/");
>
> curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYPEER, 0L);
>
> curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYHOST, 0L);
>
> CString urlString = createUrlString(host, port);
>
> curl_easy_setopt(m_curl, CURLOPT_URL, urlString.c_str());
>
> curl_easy_setopt(m_curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
>
> curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, 1L);
>
> curl_easy_setopt(m_curl, CURLOPT_HEADERFUNCTION, writeMemoryCallback);
>
> curl_easy_setopt(m_curl, CURLOPT_WRITEHEADER, (void *)&responseHeaders);
>
> Let me know if you need more info
> Appreciate your help
> Thanks
>
>

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