journal-remote: decrease microhttpd memory limit
authorKlearchos Chaloulos <klearchos.chaloulos@nokia.com>
Thu, 4 Feb 2016 15:35:24 +0000 (17:35 +0200)
committerKlearchos Chaloulos <klearchos.chaloulos@nokia.com>
Thu, 4 Feb 2016 15:35:24 +0000 (17:35 +0200)
commit8c6bcbf892c60ec33292dd3a912f03f36b27be27
tree1a2b4af4a74d12155321246ad869d269ae1ab15e
parent145c990fc90277f3a89475db33bcca2af091458f
journal-remote: decrease microhttpd memory limit

Set the MHD_OPTION_CONNECTION_MEMORY_LIMIT to 128KB. The precious value was DATA_SIZE_MAX, which was defined as 1024*1024*768. This caused journal-remote to allocate 756MB for each journal-upload connection, thus exhausting the available memory.
src/journal-remote/journal-remote.c