[Libwebsockets] Firefox client websocket error
sumitd2002 at yahoo.com
Thu Feb 27 07:59:04 CET 2020
libwebsockets::16::lws_ssl_capable_write failed: error:00000005:lib(0):func(0):DH lib, errno 10053
On Wednesday, 26 February 2020, 06:05:06 pm GMT+5:30, Andy Green <andy at warmcat.com> wrote:
On 2/26/20 12:07 PM, Sumit Dubey wrote:
> I am on windows.
Hm... what's the openssl version?
Please try this one-line change (just do it by hand is OK)
diff --git a/lib/tls/openssl/openssl-ssl.c b/lib/tls/openssl/openssl-ssl.c
index 2a6ff9527..7feb57bcb 100644
@@ -352,7 +352,7 @@ lws_ssl_capable_write(struct lws *wsi, unsigned char
*buf, int len)
- lwsl_debug("%s failed: %s\n",__func__, ERR_error_string(m, NULL));
+ lwsl_debug("%s failed: %s, errno %d\n",__func__,
ERR_error_string(m, NULL), LWS_ERRNO);
wsi->socket_is_permanently_unusable = 1;
Openssl err 5 is SSL_ERROR_SYSCALL... unfortunately, what that means and
how to react is platform-dependent, the patch above should make it also
dump errno, please check the logs for "lws_ssl_capable_write failed"
after it failed and let's see what it says.
It could be just telling us the other side hung up, or it could be some
errno status we can ignore rather than fail.
> Firefox is 73.0.1.
> lws is master
> (I guess this is the commit no.)
> On Wednesday, 26 February 2020, 05:25:55 pm GMT+5:30, Andy Green
> <andy at warmcat.com> wrote:
> On 2/26/20 11:47 AM, Sumit Dubey wrote:
> > Please find attached the lws logs around the time when the websocket got
> > disconnected.
> So you're using h2... you mentioned port 80 so I assumed not
> > > > > /The connection to wss://localhost:80/ was interrupted while
> Firefox before 72 had a bug with its ws-over-h2 that I reported a year
> ago on 65
> they fixed it for 72.
> If that's not it, what version of lws is it? Try it on master if not
> It's dying here
> libwebsockets::16::lws_ssl_capable_write failed:
> error:00000005:lib(0):func(0):DH lib
> that's a bit suspicious, is there something unusual about your platform?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets