mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:03:32 +03:00
vtls: revert "receive max buffer" + add test case
- add test_05_04 for requests using http/1.0, http/1.1 and h2 against an
Apache resource that does an unclean TLS shutdown.
- revert special workarund in openssl.c for suppressing shutdown errors
on multiplexed connections
- vlts.c restore to its state before 9a90c9dd64
Fixes #12885
Fixes #12844
Closes #12848
This commit is contained in:
parent
7cf8414fab
commit
ed09a99af5
4 changed files with 41 additions and 24 deletions
|
|
@ -47,7 +47,7 @@ class Httpd:
|
|||
'authn_core', 'authn_file',
|
||||
'authz_user', 'authz_core', 'authz_host',
|
||||
'auth_basic', 'auth_digest',
|
||||
'alias', 'env', 'filter', 'headers', 'mime',
|
||||
'alias', 'env', 'filter', 'headers', 'mime', 'setenvif',
|
||||
'socache_shmcb',
|
||||
'rewrite', 'http2', 'ssl', 'proxy', 'proxy_http', 'proxy_connect',
|
||||
'mpm_event',
|
||||
|
|
@ -389,6 +389,11 @@ class Httpd:
|
|||
f' <Location /curltest/1_1>',
|
||||
f' SetHandler curltest-1_1-required',
|
||||
f' </Location>',
|
||||
f' <Location /curltest/shutdown_unclean>',
|
||||
f' SetHandler curltest-tweak',
|
||||
f' SetEnv force-response-1.0 1',
|
||||
f' </Location>',
|
||||
f' SetEnvIf Request_URI "/shutdown_unclean" ssl-unclean=1',
|
||||
])
|
||||
if self._auth_digest:
|
||||
lines.extend([
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ static int curltest_tweak_handler(request_rec *r)
|
|||
"request, %s", r->args? r->args : "(no args)");
|
||||
r->status = http_status;
|
||||
r->clength = -1;
|
||||
r->chunked = 1;
|
||||
r->chunked = (r->proto_num >= HTTP_VERSION(1,1));
|
||||
apr_table_setn(r->headers_out, "request-id", request_id);
|
||||
apr_table_unset(r->headers_out, "Content-Length");
|
||||
/* Discourage content-encodings */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue