On 05/07/2017 10:20 PM, Nicolas Mora wrote:
> 
> 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,

Hmm.  Try 'strace' on IO operations (only, i.e. "strace -e
trace=network,ipc,desc").  When you 'send' to the Web socket, it should
be writing to a socketpair(), followed by MHD 'recv'ing from that
socketpair() and then GnuTLS ultimately send'ing to the actual TCP
socket. Equivalent for 'recv()'.

One possible cause is that you somehow fail to trigger the MHD event
loop, but your example is too complex for me to tell quickly.  Also, I'd
not exclude the possibility of a bug, given that "Upgrade" is still
relatively new (and you didn't write which version of MHD you are using...).

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to