[Libwebsockets] LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT

Srikar Vadlamani SrikarVadlamani at trafficware.com
Thu Nov 5 21:32:10 CET 2015


The debug log is

insert_wsi_socket_into_fds: wsi=0x100aca90, sock=29, fds pos=1
inserted SSL accept into fds, trying SSL_accept
SSL_accept failed 2 / error:00000002:lib(0):func(0):system lib
 SSL_ERROR_WANT_READ
accepted new SSL conn
lws_server_skt_srv: read 0 len
close: just_kill_connection
remove_wsi_socket_from_fds: wsi=0x100aca90, sock=29, fds pos=1
not calling back closed mode=0 state=0
1443841184,eLOG_CXU_SIG_PIPE_ERROR


-----Original Message-----
From: Srikar Vadlamani [mailto:andy.green at linaro.org] 
Sent: Thursday, November 05, 2015 2:10 PM
To: Andy Green <andy at warmcat.com>
Cc: libwebsockets at ml.libwebsockets.org
Subject: Re: [Libwebsockets] LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT

Andy,

I gave it a try, but now, chrome seems to work well with wss, but firefox is timing out on wss.
Have you guys seen this before?

Srikar

-----Original Message-----
From: Andy Green [mailto:andy.green at linaro.org] On Behalf Of Andy Green
Sent: Wednesday, November 04, 2015 11:50 AM
To: Srikar Vadlamani <SrikarVadlamani at trafficware.com>; libwebsockets at ml.libwebsockets.org
Subject: Re: [Libwebsockets] LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT



On 5 November 2015 01:32:38 GMT+08:00, Srikar Vadlamani <SrikarVadlamani at trafficware.com> wrote:
>Using LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT, makes ws:
>connections work, but wss: times out, has anyone seen this problem?

Make sure you're using latest git, it has a fix

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=cc64fb535bebb96e4f53bfc8e844d573686ebce9

-Andy

>Srikar
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://ml.libwebsockets.org/mailman/listinfo/libwebsockets

_______________________________________________
Libwebsockets mailing list
Libwebsockets at ml.libwebsockets.org
http://ml.libwebsockets.org/mailman/listinfo/libwebsockets



More information about the Libwebsockets mailing list