Increased network connection timeouts

This commit is contained in:
BenDroid 2018-03-02 20:48:15 +01:00
parent 9e37fa98fd
commit 80ca028e39
2 changed files with 2 additions and 2 deletions

View file

@ -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));