Increased network connection timeouts
This commit is contained in:
parent
9e37fa98fd
commit
80ca028e39
2 changed files with 2 additions and 2 deletions
2
src/3rdparty/cpp-httplib/httplib.h
vendored
2
src/3rdparty/cpp-httplib/httplib.h
vendored
|
@ -358,7 +358,7 @@ socket_t create_socket(const char* host, int port, Fn fn, int socket_flags = 0)
|
|||
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char*)&yes, sizeof(yes));
|
||||
|
||||
struct timeval timeout;
|
||||
timeout.tv_sec = 5;
|
||||
timeout.tv_sec = 10;
|
||||
timeout.tv_usec = 0;
|
||||
|
||||
setsockopt (sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout));
|
||||
|
|
|
@ -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_CONNECTION_TIMEOUT, (unsigned int) 10, MHD_OPTION_END);
|
||||
this, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 30, MHD_OPTION_END);
|
||||
|
||||
if (!m_daemon) {
|
||||
LOG_ERR("HTTP Daemon failed to start.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue