tcp: set the timeout to 9s

Set the TCP_USER_TIMEOUT to 9s as suggested by @giox069.
See #3015 for details
This commit is contained in:
Bernhard Miklautz 2016-02-23 15:34:58 +01:00
parent 8b9c40248a
commit be02849ece
1 changed files with 1 additions and 1 deletions

View File

@ -1027,7 +1027,7 @@ BOOL freerdp_tcp_set_keep_alive_mode(int sockfd)
#endif
#ifdef TCP_USER_TIMEOUT
optval = 60000;
optval = 9000;
optlen = sizeof(optval);
if (setsockopt(sockfd, SOL_TCP, TCP_USER_TIMEOUT, (void*) &optval, optlen) < 0)