cURL / Mailing Lists / curl-library / Single Mail

curl-library

Longer Voice Message not being posted to Exchange Server with curl release version >=7.24 using SSL(https)

From: Prash Dush <pradush123_at_gmail.com>
Date: Tue, 2 Dec 2014 11:58:42 +0530

Hi Mailer,

We need help for debugging the following issue.

I am from Unity Connection Team which is a voice mail solution.For Unified
messaging our system uses the Curl for Syncing the messages from this
system to outside Servers(like Exchange Servers).

For Messages >=5 MB using Basic authentication Mode with SSL ,Curl
does not sync the messages to Exchange Server,it just times out
whereas it works fine when message of same size is sent using Basic
authentication mode with Non-SSL.

Timeout value that we have set in our Client code is 15 seconds.

After enabling the debug mode I have tried to debug the issue and
found some issues in file transfer.c

In this file CURLcode Curl_readwrite() function calls
readwrite_upload() function which again calls Curl_fillreadbuffer()
function

In this function following callback returns no of read bytes to be
zero after reading buffer of length 16384 many times, whilst complete
message content is still not uploaded.

nread = (int)conn->fread_func(data->req.upload_fromhere, 1,

                                buffersize, conn->fread_in);

while this function returns with nread = 0 bytes but still
k->upload_done flag is not set.

it sets

 k->keepon &= ~KEEP_SEND //inside function readwrite_upload()

and hence setting k->keepon flag just makes writable socket
unavailable and returns file descriptor value to be -1.

Hence curl just times out after 15 seconds.

We have also tried out providing larger time-out but no luck.

An important thing to note is that my application works fine with
7.23.1 with Basic-SSL for message of length > 5 MB.

But for 7.24 onwards till 7.39 Curl version releases we are facing this problem.

Please find attached the Curl traces for the timeout Scenario.

Similar Kind of issue has been observed earlier also

Please refer following bug below.

http://curl.haxx.se/mail/tracker-2013-11/0077.html

Note :It will not be possible for me to share my lab set up
directly,but we can have Cisco Webex meeting with you guys to help you
debug the issue much faster.

Thanks in advance!

Regards

Dushyant

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

Received on 2014-12-02