http: add a timeout for initial websocket connection
1lann opened this issue ยท 0 comments
Related to a point made in #1244
It would be nice if the initial websocket connection could have a user configurable timeout for the entire handshake (as opposed to just the initial TCP connection or the like). Sometimes I find that Cloudflare can stall a WebSocket connection, timing it out after a minute or so and that's undesirable for me, it would be nice if I could cancel the connection attempt earlier.
I'd envision this as an additional timeout parameter on http.websocketAsync
and http.websocket
similar to Websocket.receive
.