curl-library
curl multi + CURLOPT_INTERFACE + bind connection
From: name via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 4 Feb 2019 10:21:54 +0300
Date: Mon, 4 Feb 2019 10:21:54 +0300
Hello!
Can I rely on the CURLOPT_INTERFACE option to guaranteed binding
(reuse) some connection?
CURL* session1 = curl_easy_setopt(easy, CURLOPT_INTERFACE, "127.0.0.1");
CURL* session2 = curl_easy_setopt(easy, CURLOPT_INTERFACE, "127.0.0.2");
on repeated calls (exclude errors) will always be same, like:
session1 re-use existing connection #1
session2 re-use existing connection #2
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-02-04