I use cURL to send HTTP/SSL packets using POST. Multipart is used to send
binary data. I have a read callback which obtains the data. The callback
pauses the connection by returning CURL_READFUNC_PAUSE when data is
temporarily unavailable. A progress callback then unpauses the connection
by calling curl_easy_pause(pCurl, CURLPAUSE_SEND_CONT) when data become
available.

Recently I noticed a significant delay during SSL handshake when multipart
is used. Although unconfirmed, I have a hunch that since my read callback
is probably called before the data is available, it pauses the connection,
thereby preventing SSL handshake from starting.

Is my suspicion (un-)founded? Can SSL negotiation be disrupted by pausing
the connection?

Thank you,
Igor.
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html

Reply via email to