caddy/modules/caddyhttp/reverseproxy
Matt Holt 66476d8c8f
reverseproxy: Close hijacked conns on reload/quit (#4895)
* reverseproxy: Close hijacked conns on reload/quit

We also send a Close control message to both ends of
WebSocket connections. I have tested this many times in
my dev environment with consistent success, although
the variety of scenarios was limited.

* Oops... actually call Close() this time

* CloseMessage --> closeMessage

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* Use httpguts, duh

* Use map instead of sync.Map

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2022-09-02 17:01:55 -06:00
..
fastcgi fastcgi: Optimize FastCGI transport (#4978) 2022-09-02 16:57:55 -06:00
forwardauth forwardauth: Fix case when copy_headers is omitted (#4856) 2022-06-28 19:23:30 -06:00
addresses.go reverseproxy: Add unix+h2c Caddyfile network shortcut (#4953) 2022-08-12 17:09:18 -04:00
admin.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
ascii_test.go reverseproxy: Sync up handleUpgradeResponse with stdlib (#4664) 2022-04-11 12:49:56 -06:00
ascii.go reverseproxy: Sync up handleUpgradeResponse with stdlib (#4664) 2022-04-11 12:49:56 -06:00
caddyfile.go reverseproxy: Multiple dynamic upstreams 2022-08-25 21:42:48 -06:00
command.go caddyhttp: Implement caddy respond command (#4870) 2022-08-01 13:36:22 -06:00
copyresponse.go reverseproxy: Fix double headers in response handlers (#4847) 2022-06-22 15:10:14 -04:00
healthchecks.go events: Implement event system (#4912) 2022-08-31 15:01:30 -06:00
hosts.go reverseproxy: Dynamic upstreams (with SRV and A/AAAA support) (#4470) 2022-03-06 17:43:39 -07:00
httptransport.go reverseproxy: Fix H2C dialer using new stdlib DialTLSContext (#4951) 2022-08-12 13:11:13 -06:00
metrics.go reverseproxy: Add upstreams healthy metrics (#4935) 2022-08-27 12:30:23 -06:00
reverseproxy.go reverseproxy: Close hijacked conns on reload/quit (#4895) 2022-09-02 17:01:55 -06:00
selectionpolicies_test.go reverseproxy: Improve hashing LB policies with HRW (#4724) 2022-04-27 10:39:22 -06:00
selectionpolicies.go Ignore linter warnings 2022-07-28 15:40:23 -06:00
streaming_test.go ci: Use golangci's github action for linting (#3794) 2020-11-22 14:50:29 -07:00
streaming.go reverseproxy: Close hijacked conns on reload/quit (#4895) 2022-09-02 17:01:55 -06:00
upstreams.go Remove duplicate words in comments (#4986) 2022-08-27 14:39:26 -06:00