I just noticed these errors popping up semi-frequently in my caddy log. Anyone know what it is?
2019/04/10 16:50:28 http: response.WriteHeader on hijacked connection from github.com/mholt/caddy/caddyhttp/httpserver.(*ResponseRecorder).WriteHeader (recorder.go:61)
2019/04/10 16:50:28 http: response.Write on hijacked connection from github.com/mholt/caddy/caddyhttp/httpserver.(*ResponseRecorder).Write (recorder.go:67)
One thing that comes to mind, though not really seeing any direct mentions of it, is I recently added some code using the Filter plugin to change the Deluge webui theme (you might remember our thread on it). I wonder if for some reason it’s thinking the re-writing of the response is a ‘hijack’?
That’s a good point. It’s possible that http.filter is trying to do something here…
That said, going off your Caddyfile, the filtering should be scoped to /delugedoc while the websockets are present elsewhere.
Can you narrow down a request that can be used to reproduce the log entry? Might be worth testing without one of those elements (filter or websocket) if you can.