Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set libmicrohttpd connections limit in http transport configuration. #2489

Merged
merged 2 commits into from
Dec 15, 2020

Conversation

atoppi
Copy link
Member

@atoppi atoppi commented Dec 11, 2020

This PR lets the user define the maximum number of open connection in libmicrohttpd through the mhd_connection_limit setting in the http transport configuration.

As explained in the official docs.

MHD_OPTION_CONNECTION_LIMIT
Maximum number of concurrent connections to accept (followed by an unsigned int). The default is FD_SETSIZE - 4

(FD_SETSIZE is 1024 in most environments)
This should be useful for deployments that make intensive use of http transport and could hit that limit.
Default value has been preserved to FD_SETSIZE - 4.

@lminiero
Copy link
Member

Merging 👍

@lminiero lminiero merged commit b4f69c0 into master Dec 15, 2020
@lminiero lminiero deleted the http-set-connection-limit branch December 15, 2020 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants