[Top][All Lists]

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

Re: [libmicrohttpd] Server reached connection limit. Closing inbound con

From: Christian Grothoff
Subject: Re: [libmicrohttpd] Server reached connection limit. Closing inbound connection. how to increase the limits?
Date: Sat, 20 Jan 2018 18:53:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

Hi Pascal,

There are several "limits" that may apply.

(1) MHD_OPTION_CONNECTION_LIMIT -- usually 1020 (or FD_SETSIZE - 4) is
    likely the first one you may hit.  You can pass a different value to
    MHD_start_daemon() in the varargs;

(2) FD_SETSIZE is another limit you are likely to hit if you use the
select() event loop; tricky to bump, you ought to switch to poll/epoll

(3) ulimit (-n) may also impose a 1024 limit on your process

Happy hacking!


On 01/20/2018 08:56 AM, Menaxerius wrote:
> Hello, I'm using microlibhttpd for our Miningpool Server application.
> So far so good. But due to more and more active miners is reaching I
> start reaching this limit.
> Can someone explain me where those limit is set and how to increase it? 
> Thanks in advance.
> Regards
> Pascal

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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