Page:
curl_easy_abort
Pages
A logging facility for libcurl
DNS over HTTPS
DOH implementation
Developing on OpenBSD
HTTP 2 proxy tunneling
HTTPS record
Home
Hyper
JSON
OpenSSL forks
Packaging for Windows
Realm aware auth API
State of curl CI
Trust On First Use
WebSockets
buffer queues
clang format style
curl distro discussion 2024
curl distro discussion 2025
curl distro discussion 2026
curl tool master client
curl_easy_abort
curl_easy_cmdline
gource
how to git bisect
libcurl 8
libcurl and expected string encodings
push access guidelines
shared connection cache issues
ssl_config handling
No results
2
curl_easy_abort
i-ky edited this page 2020-04-29 12:51:52 +03:00
Table of contents
Abortable curl_easy_perform()
- Introduce new option to
curl_share_setopt():CURL_LOCK_ABORT - Participating transfers must then use a shared object with that bit set
- Such share objects should have the mutex callback set.
curl_easy_abort()
CURLcode curl_easy_abort(CURL *easy);
Can be called from the same or another thread. This aborts the specific transfer iff that transfer was setup to allow being externally aborted like described above. A transfer that is aborted is terminated, not simply paused.
Trying to abort a non-participating transfer will only result in a
CURLE_ABORT_DENIED (new) return code.
A transfer that is successfully stopped by this function will return the
CURLE_ABORTED (new) return code.
Users of this function must take precautions to make sure that the handle itself is still valid when used in this function.
Main website - https://curl.se/