-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Labels
Description
Background
We need to pause/unpause the connection. Actual connection is handled in worker thread.
Problem
When main thread request pause/unpause, the event is dispatched into worker thread. At this moment, I need to know whether curl handle is paused or not to avoid unnecessary curl_easy_pause() which end up of calling of Curl_updatesocket(). Currently we manage that by flag aside with easy handle but ideally it's better to get the information from curl handle.
I expected the following
CURLcode curl_easy_get_paused(easy, &state);
or
CURLcode curl_easy_getinfo(easy, CURLINFO_PAUSE_STATE, &state);
curl/libcurl version
libcurl 7.60.0
operating system
Windows 10 / FreeBSD