|
From: | Nicolas Mora |
Subject: | Re: [libmicrohttpd] About an HTTPS connection Upgraded |
Date: | Sun, 7 May 2017 16:20:35 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Le 2017-05-07 à 15:42, Christian Grothoff a écrit :
Argh, I tried that at first and it didn't work, so I used the wrong path, my bad.Eh, what is wrong is that you use "gnutls_record_send". MHD will do this for you, you should just use "send/recv", even in HTTPS mode! In fact, your code (short of MHD_start_daemon) can be exactly the same for HTTP and HTTPS.
Any I retried it without any gnutls call on the MHD_sock and I still have problems reading and writing the socket, nothing is transmitted, although the handshake is correct because the client says that the websocket is open, and the send and receive functions are
When the server is shut down, I have the following error messages:Failed to forward to remote client 53 bytes of data received from application: daemon shut down
Failed to signal resume via inter-thread communication channel. The updated code can be found here: https://github.com/babelouest/ulfius/blob/2.0b/src/u_websocket.c Any clue?
[Prev in Thread] | Current Thread | [Next in Thread] |