]> git.ipfire.org Git - thirdparty/curl.git/commit
easy: make curl_easy_perform() return error if connection still there
authorDaniel Stenberg <daniel@haxx.se>
Tue, 14 Jan 2025 14:47:21 +0000 (15:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Jan 2025 15:32:46 +0000 (16:32 +0100)
commitbe82a3605a4b539580b3de776ffcca25b8770e43
treeb9b793d66da1e43c7f06753a2256336a119c3b37
parent2f8ecd5dbd55b801b0ae13b9374c06ec19e8ea9e
easy: make curl_easy_perform() return error if connection still there

This typically happens if CURL_CONNECT_ONLY is used and a second
curl_easy_perform() is attempted.

A connection "taken over" with CURL_CONNECT_ONLY cannot be ended any
other way than a curl_easy_cleanup() on the easy handle that holds it.

Add test 696 to verify.

Closes #16003
lib/easy.c
tests/data/Makefile.am
tests/data/test696 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib556.c