Repository navigation
Commit 01cc6da
committed
[TEST] Hold what a client without a multi handle does with a request
Reporting the curl_multi_init failure does not by itself stop the client taking
requests, so the case now holds what taking one leads to rather than only that
the failure was reported. Raised by @lalitb in review.
Measured before choosing an assertion. A client built on a null multi handle
answers normally: curl_multi_perform rejects the handle, the IO loop resets it,
the pending session moves to the new one and the request completes, three runs
out of three with the internal log confirming the handle really was null. Gate
resetMultiHandle out and the same case fails on the new assertion and then hangs,
which is the outcome the assertion exists to catch.
So the case asserts the caller reaches a terminal outcome and the session does
not stay active, without pinning which outcome. A build where the allocation is
still failing when the reset runs reports a failure instead of a response, and
both satisfy the property that matters.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent 1fbf309 commit 01cc6da
1 file changed
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
288 | 317 | | |
289 | 318 | | |
290 | 319 | | |
| |||
965 | 994 | | |
966 | 995 | | |
967 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
968 | 1039 | | |
969 | 1040 | | |
970 | 1041 | | |
| |||
0 commit comments