Merge branch 'master'
Conflicts: src/cc/Httpd.cpp
This commit is contained in:
commit
887bdbeace
1 changed files with 1 additions and 1 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));
|
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char*)&yes, sizeof(yes));
|
||||||
|
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
timeout.tv_sec = 5;
|
timeout.tv_sec = 10;
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_usec = 0;
|
||||||
|
|
||||||
setsockopt (sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout));
|
setsockopt (sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue