mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:23:36 +03:00
vquic: use ngtcp2 v1.25.0 new close2 callback
Forward only the app error code from the receiving side to the h3 layer. This only takes effect when building against ngtcp2 v1.25.0 or higher. Fixes #22270 Closes #22356
This commit is contained in:
parent
ed3508b1ee
commit
4eb4b0d080
2 changed files with 43 additions and 6 deletions
|
|
@ -104,14 +104,12 @@ class TestAuth:
|
|||
'--basic', '--user', f'test:{password}',
|
||||
'--trace-config', 'http/2,http/3'
|
||||
])
|
||||
# but apache either denies on length limit or gives a 400
|
||||
if proto == 'h3':
|
||||
# depends on nghttp3 version
|
||||
assert r.exit_code in (0, 56), f'expected exit code 0 or 56, '\
|
||||
f'got {r.exit_code}\n{r.dump_logs()}'
|
||||
if proto == 'h3' and r.exit_code != 0:
|
||||
# nghttpx violently closes the connection now
|
||||
assert r.exit_code in [55, 56, 95], f'{r.dump_logs()}'
|
||||
else:
|
||||
# but apache either denies on length limit or gives a 400
|
||||
r.check_exit_code(0)
|
||||
if r.exit_code == 0:
|
||||
assert r.stats[0]['http_code'] in [400, 431]
|
||||
|
||||
# PUT data, basic auth with very large pw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue