Fixed #10 CCServer spontaneously freezes and holds CPU 100%
This commit is contained in:
parent
9ef2eea854
commit
84a3a01dbf
2 changed files with 4 additions and 2 deletions
|
@ -44,7 +44,7 @@ bool Httpd::start()
|
|||
}
|
||||
|
||||
m_daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, static_cast<uint16_t>(m_options->ccPort()), nullptr, nullptr, &Httpd::handler,
|
||||
this, MHD_OPTION_END);
|
||||
this, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 10, MHD_OPTION_END);
|
||||
|
||||
if (!m_daemon) {
|
||||
LOG_ERR("HTTP Daemon failed to start.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue