You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error when copying from client to backend: websocket: close 1006 (abnormal closure): unexpected EOF #39
I just encountered below error message, looks like the wss connection is closed after dial successfully:
2020/10/19 17:25:43 websocketproxy: Error when copying from client to backend: websocket: close 1006 (abnormal closure): unexpected EOF
2020/10/19 17:25:43 http: response.WriteHeader on hijacked connection from huayun.com/haihe/bare-metal-vnc/src/websocketproxy.(*WebsocketProxy).ServeHTTP.func1 (websocket_proxy.go:130)
Note:
connBackend, resp, err := dialer.Dial(backend.Url.String(), requestHeader)
This line works fine, err is nil.
Activity
alfrye commentedon Jun 30, 2021
I am experiencing the same issues. Are there any updates on this issue?
feiyiban commentedon Mar 30, 2022
I am experiencing the same issues. Are there any updates on this issue?
mpisat commentedon Jun 25, 2022
Same here...
Egr711 commentedon Oct 27, 2023
In my case, needed to copy response headers after dialing.
Egr711 commentedon Oct 8, 2025
if youre using
net/httpyou can just usehttputil.NewSingleHostReverseProxyinstead of this package. websocket support was added in 2019 with Go 1.12