labstack / echo

High performance, minimalist Go web framework
https://echo.labstack.com
MIT License
29.82k stars 2.22k forks source link

Echo rewrite for the sfu-ws example gives the hijack error #2523

Open NikhilSharmaWe opened 1 year ago

NikhilSharmaWe commented 1 year ago

Hey

When I get to the meeting page, everything works fine but when I leave the meeting page, the server logs this hijack error for the echo response writer:

echo: http: response.WriteHeader on hijacked connection from github.com/labstack/echo/v4.(*Response).WriteHeader (response.go:63)
echo: http: response.Write on hijacked connection from github.com/labstack/echo/v4.(*Response).Write (response.go:75)
{"time":"2023-09-22T01:26:57.800164+05:30","level":"ERROR","prefix":"echo","file":"echo.go","line":"463","message":"http: connection has been hijacked"}

Help needed in finding out what am I missing here, since relatively newer to working with echo.

gianarb commented 9 months ago

I am getting the same error. I have a different setup because I use openapi as well.

nickheyer commented 3 months ago

Same error here. If I disable the timeout the error "goes away", but not really.