core: change default timeout to 1s
This commit is contained in:
@@ -56,7 +56,7 @@ static int create_socket(struct setting const *settings)
|
|||||||
print_err("Failed to setsockopt(): ttl");
|
print_err("Failed to setsockopt(): ttl");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
struct timeval tv = {2, 0};
|
struct timeval tv = {1, 0};
|
||||||
ret = setsockopt(sockfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
|
ret = setsockopt(sockfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user