[Libwebsockets] Some more patches to add..
ash20001 at hotmail.com
Tue Oct 20 06:04:43 CEST 2015
Hello Andy,Did you get these two issues below?
From: andy.green at linaro.org
To: libwebsockets at ml.libwebsockets.org
Date: Tue, 13 Oct 2015 23:46:53 -0700
Subject: [Libwebsockets] Some more patches to add..
HI Andy,Since you are back, I have some more bug fixes that are easier for me to just tell you here and you can perhaps commit them?
1. server.c if (strcasecmp(http_conn_str, "close")) connection_type = HTTP_CONNECTION_CLOSE;should be if (!strcasecmp(http_conn_str, "close")) connection_type = HTTP_CONNECTION_CLOSE;
2. context.cSSL is inited for plain HTTP server.
if (lws_context_init_server_ssl(info, context)) goto bail;
if (lws_context_init_client_ssl(info, context)) goto bail;
I am not sure why we need this code for a pure HTTP server since there is no SSL. But anyway these functions call SSL_library_init() which is not reentrant, so in my case, i had one thread host an HTTP server and another host an HTTPS server and was running into all sorts of reentrancy issues because SSL_library_init was called simultaneously.
Libwebsockets mailing list
Libwebsockets at ml.libwebsockets.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets