caddy/modules/caddyhttp
wangshun edcdfa0ed8
fix: v2.11.9: clearing a handler read deadline installs read_body as a hard deadline, truncating responses of requests longer than read_body (regression from #8284) (#8400)
* fix: v2.11.9: clearing a handler read deadline installs read_body as a h

Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>

* caddyhttp: add regression test for cleared handler deadline after terminal body

* fix(http): avoid synthetic read deadline for bodyless requests

Keep a handler-cleared read deadline cleared when net/http supplied
http.NoBody, and cover the case with an HTTP/1 regression test.

Assisted by OpenAI Codex; reviewed and approved by the author.

Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>

---------

Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>
Co-authored-by: xixi-box <xixi-box@users.noreply.github.com>
2026-11-19 17:04:44 +10:00
..
caddyauth
…
encode
…
fileserver caddyhttp: keep runtime CEL matcher arguments literal 2026-11-11 11:06:41 -07:00
headers
…
intercept
…
logging
…
map
…
proxyprotocol
…
push
…
requestbody
…
reverseproxy reverseproxy: pick the health check scheme by the port it connects to (#8395) 2026-11-14 01:25:05 -05:00
rewrite rewrite: escape regexp captures in rewritten paths 2026-11-11 12:25:23 -07:00
standard
…
templates
…
timeouts
…
tracing
…
app.go
…
app_test.go
…
autohttps.go
…
autohttps_test.go
…
caddyhttp.go caddyhttp: preserve invalid UTF-8 bytes throughout path matching 2026-11-11 11:06:40 -07:00
caddyhttp_bench_test.go
…
caddyhttp_test.go caddyhttp: preserve invalid UTF-8 bytes throughout path matching 2026-11-11 11:06:40 -07:00
celmatcher.go caddyhttp: verify CEL pattern provenance and satisfy lint 2026-11-11 11:06:41 -07:00
celmatcher_literal_test.go caddyhttp: keep runtime CEL matcher arguments literal 2026-11-11 11:06:41 -07:00
celmatcher_pattern_test.go caddyhttp: verify CEL pattern provenance and satisfy lint 2026-11-11 11:06:41 -07:00
celmatcher_test.go
…
errors.go
…
errors_randstring_test.go
…
http2listener.go
…
httpredirectlistener.go
…
idletimeout.go fix: v2.11.9: clearing a handler read deadline installs read_body as a hard deadline, truncating responses of requests longer than read_body (regression from #8284) (#8400) 2026-11-19 17:04:44 +10:00
idletimeout_test.go fix: v2.11.9: clearing a handler read deadline installs read_body as a hard deadline, truncating responses of requests longer than read_body (regression from #8284) (#8400) 2026-11-19 17:04:44 +10:00
incremental.go
…
incremental_test.go
…
invoke.go
…
ip_matchers.go
…
ip_range.go
…
logging.go
…
logging_test.go
…
marshalers.go
…
matchers.go caddyhttp: preserve invalid UTF-8 bytes throughout path matching 2026-11-11 11:06:40 -07:00
matchers_test.go caddyhttp: preserve invalid UTF-8 bytes throughout path matching 2026-11-11 11:06:40 -07:00
metrics.go
…
metrics_test.go
…
replacer.go
…
replacer_test.go
…
responsematchers.go
…
responsematchers_test.go
…
responsewriter.go
…
responsewriter_test.go
…
routes.go
…
server.go fix: v2.11.9: clearing a handler read deadline installs read_body as a hard deadline, truncating responses of requests longer than read_body (regression from #8284) (#8400) 2026-11-19 17:04:44 +10:00
server_bench_test.go
…
server_error_headers_test.go caddyhttp: sanitize header aliases before request validation 2026-11-11 11:06:41 -07:00
server_request_target_test.go caddyhttp: reject opaque targets before routing and proxying 2026-11-11 11:06:41 -07:00
server_test.go fix: v2.11.9: clearing a handler read deadline installs read_body as a hard deadline, truncating responses of requests longer than read_body (regression from #8284) (#8400) 2026-11-19 17:04:44 +10:00
staticerror.go
…
staticresp.go
…
staticresp_test.go
…
subroute.go
…
urlpatternmatcher.go
…
urlpatternmatcher_test.go
…
vars.go
…
vars_test.go
…