summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2023-04-21 12:04:46 +0200
committerDaniel Stenberg <daniel@haxx.se>2023-04-25 17:49:28 +0200
commitcab2d56ea52b3724495b3dbc5bfef3343d4ecadc (patch)
tree7aea2eecec9df647106ddb351b6e62d8d6c907f0 /tests
parenta97e4eb95f86adb6043a3388250f34841440981e (diff)
downloadcurl-cab2d56ea52b3724495b3dbc5bfef3343d4ecadc.tar.gz
h2/h3: replace `state.drain` counter with `state.dselect_bits`
- `drain` was used by http/2 and http/3 implementations to indicate that the transfer requires send/recv independant from its socket poll state. Intended as a counter, it was used as bool flag only. - a similar mechanism exists on `connectdata->cselect_bits` where specific protocols can indicate something similar, only for the whole connection. - `cselect_bits` are cleard in transfer.c on use and, importantly, also set when the transfer loop expended its `maxloops` tries. `drain` was not cleared by transfer and the http2/3 implementations had to take care of that. - `dselect_bits` is cleared *and* set by the transfer loop. http2/3 does no longer clear it, only set when new events happen. This change unifies the handling of socket poll overrides, extending `cselect_bits` by a easy handle specific value and a common treatment in transfers. Closes #11005
Diffstat (limited to 'tests')
-rw-r--r--tests/http/test_05_errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/http/test_05_errors.py b/tests/http/test_05_errors.py
index 587ba33c4..219faf3cc 100644
--- a/tests/http/test_05_errors.py
+++ b/tests/http/test_05_errors.py
@@ -89,6 +89,6 @@ class TestErrors:
assert len(r.stats) == count, f'did not get all stats: {r}'
invalid_stats = []
for idx, s in enumerate(r.stats):
- if 'exitcode' not in s or s['exitcode'] not in [18, 56, 92, 95]:
+ if 'exitcode' not in s or s['exitcode'] not in [18, 55, 56, 92, 95]:
invalid_stats.append(f'request {idx} exit with {s["exitcode"]}\n{s}')
assert len(invalid_stats) == 0, f'failed: {invalid_stats}'