Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

journal-remote: increase memory limit per connection to avoid errors … #29

Merged
merged 1 commit into from
Dec 14, 2015

Conversation

mischief
Copy link

…with HTTPS

Explicitly set MHD_OPTION_CONNECTION_MEMORY_LIMIT to a larger value,
when setting up microhttpd, to give more memory per HTTP(S) connection.

This way systemd-journal-remote can now prevent microhttpd from failing
in creating response headers with messages like "Not enough memory for
write", especially when lots of HTTPS requests arrive. That's precisely
because MHD_OPTION_CONNECTION_MEMORY_LIMIT in libmicrohttpd defaults to
32768, which is in practice insufficient in this case.
See also https://gnunet.org/bugs/view.php?id=4007 for more details.

Fixes: coreos/bugs#927

fixes coreos/bugs#927

…with HTTPS

Explicitly set MHD_OPTION_CONNECTION_MEMORY_LIMIT to a larger value,
when setting up microhttpd, to give more memory per HTTP(S) connection.

This way systemd-journal-remote can now prevent microhttpd from failing
in creating response headers with messages like "Not enough memory for
write", especially when lots of HTTPS requests arrive. That's precisely
because MHD_OPTION_CONNECTION_MEMORY_LIMIT in libmicrohttpd defaults to
32768, which is in practice insufficient in this case.
See also https://gnunet.org/bugs/view.php?id=4007 for more details.

Fixes: coreos/bugs#927
@vcaputo
Copy link

vcaputo commented Dec 14, 2015

lgtm

mischief added a commit that referenced this pull request Dec 14, 2015
journal-remote: increase memory limit per connection to avoid errors …
@mischief mischief merged commit 221799b into coreos:v225-coreos Dec 14, 2015
@mischief mischief deleted the journal-remote-memory branch December 14, 2015 23:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants