libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] About an HTTPS connection Upgraded


From: Christian Grothoff
Subject: Re: [libmicrohttpd] About an HTTPS connection Upgraded
Date: Sun, 7 May 2017 22:51:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

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

[Prev in Thread] Current Thread [Next in Thread]