Switch to threaded webserver
This commit is contained in:
parent
4cea0d3968
commit
8b346aa7e8
2
main.c
2
main.c
@ -697,7 +697,7 @@ void server(int port) {
|
|||||||
#if defined(ENABLE_WWW)
|
#if defined(ENABLE_WWW)
|
||||||
if (conf.www_server && conf.www_path != NULL) {
|
if (conf.www_server && conf.www_path != NULL) {
|
||||||
www_init();
|
www_init();
|
||||||
www_daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, conf.www_port, NULL, NULL, &www_handler, NULL, MHD_OPTION_NOTIFY_COMPLETED, &www_request_completed, NULL, MHD_OPTION_URI_LOG_CALLBACK, &www_logger, NULL, MHD_OPTION_END);
|
www_daemon = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, conf.www_port, NULL, NULL, &www_handler, NULL, MHD_OPTION_NOTIFY_COMPLETED, &www_request_completed, NULL, MHD_OPTION_URI_LOG_CALLBACK, &www_logger, NULL, MHD_OPTION_END);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user