Commit 5119bf75 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[357] set default tcp recv timeout to 5 seconds

parent c1f4e353
......@@ -94,7 +94,7 @@
{ "item_name": "tcp_recv_timeout",
"item_type": "integer",
"item_optional": false,
"item_default": 1000
"item_default": 5000
}
],
"commands": [
......
......@@ -40,7 +40,7 @@ public:
DNSServiceImpl(IOService& io_service, SimpleCallback* checkin,
DNSLookup* lookup, DNSAnswer* answer) :
io_service_(io_service), checkin_(checkin), lookup_(lookup),
answer_(answer), tcp_recv_timeout_(1000)
answer_(answer), tcp_recv_timeout_(5000)
{}
IOService& io_service_;
......
......@@ -72,7 +72,7 @@ TCPServer::TCPServer(io_service& io_service, int fd, int af,
}
// Set it to some value. It should be set to the right one
// immediately, but set it to something non-zero just in case.
tcp_recv_timeout_.reset(new size_t(1000));
tcp_recv_timeout_.reset(new size_t(5000));
}
namespace {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment