libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Problem send large trunk of data over upgraded conne


From: Christian Grothoff
Subject: Re: [libmicrohttpd] Problem send large trunk of data over upgraded connection with epoll and https enabled
Date: Sun, 23 Jun 2019 13:15:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1

On 6/23/19 6:28 AM, Vi?t Nguy?n Xuân wrote:
> Hi All,
> 
> I'm using libmicrohttpd to implement a WebSocket server based on HTTP
> Upgrade connection.
> I'm using latest git revision of this library for my work.
> Everything works well for small message passes over upgraded connection,
> I tested with Chrome and Firefox browsers and they are all Ok.
> But I have a trouble when sending large trunk of message to the server,
> if the size of message is larger than 1/3 connection buffer size, it's
> very often that this message will be queued for next send or is not sent
> at all. For smaller messages, they will be sent and received immediately.
> 
> This issue  only happens when I enable HTTPs combine with EPOLL internal
> thread, for other combination it seems that this issue does not happen.
> For example I can send large message normally with HTTPS + POLL internal
> thread or with HTTP + EPOLL internal thread.
> 
> Could you please check this issue for me?

It would help a lot if you could provide an ideally minimal code example
and instructions to reproduce the problem.

Happy hacking!

Christian

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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