Curl version: curl 7.54.0. libcurl/7.54.0 OpenSSL/1.0.2g zlib/1.2.8

I use libcurl to download files from s3 bucket and apply two interface:
multi_socket and easy.

Both interface download 1MB one time.

Execution order in log is below:

socket callback: s=16 e=0x7f4cb4020230 Adding data: OUT
socket callback: s=16 e=0x7f4cb4020230 Change action from OUT to IN.
easy_perform starte. Download 1MB. ->Download finished.
easy_perform starte. Download 1MB. -> Download finished.
socket callback: s=16 e=0x7f4cb4020230 Removing.
multi_socket download done.

In code snippet the two interface use the same curl_easy_setopt() such as
CURLOPT_WRITEFUNCTION
CURLOPT_HTTPHEADER
CURLOPT_URL...etc.

I have questions about that the two interface will affect each other?
I thought the multi_socket interface will download first that the latter
easy interface.
-- 
Best Regards,
pahome
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to