]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-gateway: use MHD_USE_POLL_INTERNAL_THREAD instead of MHD_USE_POLL
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Jul 2017 04:21:34 +0000 (13:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Jul 2017 04:37:10 +0000 (13:37 +0900)
commit315629a83f6c46695ce7ff87c77ad493f1283172
tree335c6a4c779a4e5890bcf31070031d29919b7575
parentc831aa7554fa9dcb56e68db884022699e1f4a881
journal-gateway: use MHD_USE_POLL_INTERNAL_THREAD instead of MHD_USE_POLL

The option MHD_USE_THREAD_PER_CONNECTION requires MHD_USE_POLL_INTERNAL_THREAD
since libmicrohttpd-0.9.53.
If MHD_USE_POLL is used instead of MHD_USE_POLL_INTERNAL_THREAD, then
the library outputs the following warning:
```
Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with
MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added.
Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
```
The option MHD_USE_POLL_INTERNAL_THREAD is defined as
`MHD_USE_POLL_INTERNAL_THREAD = MHD_USE_POLL | MHD_USE_INTERNAL_POLLING_THREAD,`
So, let's use MHD_USE_POLL_INTERNAL_THREAD instead of MHD_USE_POLL.
src/journal-remote/journal-gatewayd.c
src/journal-remote/microhttpd-util.h