caddy/modules/caddyhttp
Chris Oliver 553b62c3f3
reverseproxy: send every close message before closing tunnel connections (#8371)
Closing one side of a tunnel ends its copy loops, which close the other
side. closeConnectionsLocked sent each close message and closed that
connection before moving on, in map order, so when the client side came
first the upstream was often closed before its close message went out.
Send every close message in the batch first, then close the connections.

The second close then regularly finds the connection already closed.
Treat net.ErrClosed as expected instead of returning it, so reloads with
open websockets no longer log "use of closed network connection" at
ERROR level.

The upstream close message test goes back to running the real cleanup,
which it can now do reliably.
2026-11-08 11:05:28 +00:00
..
caddyauth caddyauth: Don't write into shared hash buffer when building cache key (#8278) 2026-11-03 08:21:45 +00:00
encode encode: use httpguts to look for Accept-Encoding in Vary (#8329) 2026-11-01 16:59:21 -05:00
fileserver fileserver: test hide against Windows trailing dot and space aliases (#8377) 2026-11-07 06:30:59 -05:00
headers caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
intercept
logging
map
proxyprotocol
push
requestbody requestbody: enforce max_size early using Content-Length (#8337) 2026-11-03 18:18:40 +10:00
reverseproxy reverseproxy: send every close message before closing tunnel connections (#8371) 2026-11-08 11:05:28 +00:00
rewrite caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
standard
templates templates: use the earliest front matter closing fence (#8259) 2026-10-20 17:07:07 +10:00
timeouts caddyhttp: only bound HTTP/2 body reads in flight with the idle timeout (#8125) 2026-10-06 07:47:14 +10:00
tracing
app.go fastcgi: keep the php_fastcgi directory redirect on the same origin (#8285) 2026-10-28 09:45:37 +00:00
app_test.go
autohttps.go
autohttps_test.go
caddyhttp.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
caddyhttp_bench_test.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
caddyhttp_test.go
celmatcher.go caddyhttp: Reject repeated expression matchers in a matcher set (#8183) 2026-10-11 06:50:29 +10:00
celmatcher_test.go caddyhttp: add CEL expression support to the tls matcher (#8088) 2026-10-24 08:01:24 -04:00
errors.go
errors_randstring_test.go
http2listener.go
httpredirectlistener.go
idletimeout.go caddyhttp: let handler read deadlines cap the idle read timeout (#8284) 2026-10-29 23:22:59 +10:00
idletimeout_test.go tests: stabilise HTTP/2 idle timeout test (#8351) 2026-11-05 09:10:39 +00:00
incremental.go feat: implement the Incremental header field (RFC 10036) (#8020) 2026-10-02 20:59:34 -04:00
incremental_test.go feat: implement the Incremental header field (RFC 10036) (#8020) 2026-10-02 20:59:34 -04:00
invoke.go
ip_matchers.go
ip_range.go
logging.go httpcaddyfile: Add log_level directive for access logs (#8201) 2026-10-12 11:54:20 -04:00
logging_test.go caddyhttp: ignore case when matching hosts in logger_names (#8176) 2026-10-09 21:15:23 +00:00
marshalers.go
matchers.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
matchers_test.go fastcgi: reject Win 8.3 aliases and alt data streams paths (#8356) 2026-11-04 14:34:04 -05:00
metrics.go
metrics_test.go
replacer.go fastcgi: keep the php_fastcgi directory redirect on the same origin (#8285) 2026-10-28 09:45:37 +00:00
replacer_test.go caddyhttp: keep absent optional placeholders empty (#8019) 2026-10-03 01:54:13 +00:00
responsematchers.go
responsematchers_test.go
responsewriter.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
responsewriter_test.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
routes.go caddyhttp: skip matchers for satisfied route groups (#8189) 2026-10-11 06:50:13 +10:00
server.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
server_bench_test.go caddyhttp, reverseproxy: experimental WebTransport passthrough (#7669) 2026-10-12 23:24:10 -04:00
server_test.go caddyhttp: reject invalid and dots-only hosts on every protocol (#8328) 2026-11-03 06:12:03 +00:00
staticerror.go
staticresp.go
staticresp_test.go caddyhttp: keep absent optional placeholders empty (#8019) 2026-10-03 01:54:13 +00:00
subroute.go
urlpatternmatcher.go
urlpatternmatcher_test.go
vars.go
vars_test.go