lua-resty-websocket icon indicating copy to clipboard operation
lua-resty-websocket copied to clipboard

Incorrect default port for wss

Open edubart opened this issue 8 years ago • 2 comments

The library is using port 80 instead of 443 for wss:// URLs, giving the following errors:

2017/06/03 13:20:12 [error] 5776#0: *2 SSL_do_handshake() failed (SSL: error:140770FC:SSL routines:SSL23_GET_
SERVER_HELLO:unknown protocol), context: ngx.timer

and

2017/06/03 13:10:52 [error] 3441#0: *2 peer closed connection in SSL handshake, context: ngx.timer
ssl handshake failed: handshake failed

Using :443 in the URL fixes the problem, like wss://echo.websocket.org:443

edubart avatar Jun 03 '17 16:06 edubart

@edubart Hmm, will you mind creating a pull request to fix this issue? Many thanks!

agentzh avatar Jun 03 '17 17:06 agentzh

Hi all, opened pr #55 to address this.

jprjr avatar Dec 24 '20 04:12 jprjr