libmicrohttpd
[Top][All Lists]
Advanced

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

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


From: Evgeny Grin
Subject: Re: [libmicrohttpd] Server reached connection limit. Closing inbound connection. how to increase the limits?
Date: Mon, 22 Jan 2018 23:28:04 +0300

In addition, consider using MHD_OPTION_CONNECTION_TIMEOUT so old connection will be dropped automatically.
 
-- 
Best Wishes,
Evgeny Grin
 
 
 
20.01.2018, 20:53, "Christian Grothoff" <address@hidden>:

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
instead.

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

Happy hacking!

Christian

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

 


reply via email to

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