lib: add curl_multi_waitfds

New function call, similar to curl_multi_fdset()

Closes #13135
This commit is contained in:
Dmitry Karpov 2024-03-14 21:41:44 -07:00 committed by Daniel Stenberg
parent e469ac4494
commit 02beac6bb6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
12 changed files with 553 additions and 2 deletions

View file

@ -248,7 +248,7 @@ test2200 test2201 test2202 test2203 test2204 test2205 \
\
test2300 test2301 test2302 test2303 test2304 test2305 test2306 test2307 \
\
test2400 test2401 test2402 test2403 test2404 \
test2400 test2401 test2402 test2403 test2404 test2405 \
\
test2500 test2501 test2502 test2503 \
\

View file

@ -109,6 +109,7 @@ curl_multi_assign
curl_multi_get_handles
curl_pushheader_bynum
curl_pushheader_byname
curl_multi_waitfds
curl_easy_option_by_name
curl_easy_option_by_id
curl_easy_option_next

51
tests/data/test2405 Normal file
View file

@ -0,0 +1,51 @@
<testcase>
<info>
<keywords>
multi
HTTP
HTTP/2
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
Accept-Ranges: bytes
Content-Length: 6007
Connection: close
Content-Type: text/html
Funny-head: yesyes
-foo-
%repeat[1000 x foobar]%
</data>
</reply>
# Client-side
<client>
<server>
http
http/2
</server>
<tool>
lib%TESTNUMBER
</tool>
<name>
checking curl_multi_waitfds functionality
</name>
<command>
http://%HOSTIP:%HTTP2PORT/%TESTNUMBER
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
</protocol>
</verify>
</testcase>