Le 2017-05-07 à 15:42, Christian Grothoff a écrit :
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.
Argh, I tried that at first and it didn't work, so I used the wrong
path, my bad.
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?