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
…
addresses.go
…
admin.go
…
ascii.go
…
ascii_test.go
…
caddyfile.go
…
command.go
…
copyresponse.go
…
healthchecks.go events: Implement event system (#4912) 2022-08-31 15:01:30 -06:00
hosts.go
…
httptransport.go
…
metrics.go
…
reverseproxy.go reverseproxy: Close hijacked conns on reload/quit (#4895) 2022-09-02 17:01:55 -06:00
selectionpolicies.go
…
selectionpolicies_test.go
…
streaming.go reverseproxy: Close hijacked conns on reload/quit (#4895) 2022-09-02 17:01:55 -06:00
streaming_test.go
…
upstreams.go
…