Open
Description
Since release 2.7 Websocket_lwt.establish_server
has a check_request
parameter. This is good, except that it has a default value: check_origin_with_host
. This is problematic when the server is behind a WS proxy because this control will fail and the resulting exception does not give a lot of information (so it took me some time to find it).
Moreover, since the on_exc
parameter has no default handler, the exception Protocol_error "Bad headers"
was raised and just shut down the websocker server.
So I would suggest: either
- set no default value for
check_request
andon_exc
or - keep the same
check_origin_with_host
default but in this case set a more informative error message and set a defaulton_exc
handler.
Metadata
Metadata
Assignees
Labels
No labels