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
When running ttyd, if a command exits with a code other than 0, ttyd sends a WebSocket control code 1006. However, according to the WebSocket specification, code 1006 is a reserved value and should not be sent by the server explicitly. This behavior causes issues when running ttyd behind a proxy that uses the Gorilla WebSocket library, as it triggers an error when the proxy detects that the server has sent a 1006 code.
RFC 6455: The WebSocket Protocol
1006 is a reserved value and MUST NOT be set as a status code in a
Close control frame by an endpoint. It is designated for use in
applications expecting a status code to indicate that the
connection was closed abnormally, e.g., without sending or
receiving a Close control frame.
The text was updated successfully, but these errors were encountered:
When running ttyd, if a command exits with a code other than 0, ttyd sends a WebSocket control code 1006. However, according to the WebSocket specification, code 1006 is a reserved value and should not be sent by the server explicitly. This behavior causes issues when running ttyd behind a proxy that uses the Gorilla WebSocket library, as it triggers an error when the proxy detects that the server has sent a 1006 code.
The text was updated successfully, but these errors were encountered: