From b46cfbc068ebe90f18e9777b9e877e4934c1b5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Sat, 10 Feb 2018 15:13:15 +0100 Subject: TODO fixed: Detect when called from within callbacks Closes #2302 --- tests/data/test1555 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/data/test1555 (limited to 'tests/data/test1555') diff --git a/tests/data/test1555 b/tests/data/test1555 new file mode 100644 index 000000000..19512c5f5 --- /dev/null +++ b/tests/data/test1555 @@ -0,0 +1,50 @@ + + + +RECURSIVE_API_CALL + + + +# Server-side + + +HTTP/1.1 204 PARTIAL +X-Comment: partial response to keep the client waiting + + +wait 10 + + + +# Client-side + + +http + + +lib1555 + + +verify api is protected against calls from callbacks + + +# this server/host won't be used for real + +http://%HOSTIP:%HTTPPORT/1555 + + + +# Verify data after the test has been "shot" + + + +# 42 == CURLE_ABORTED_BY_CALLBACK + +42 + + +curl_easy_recv returned 93 +curl_easy_send returned 93 + + + -- cgit v1.2.3