Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
5119bf75
Commit
5119bf75
authored
Aug 31, 2012
by
Jelte Jansen
Browse files
[357] set default tcp recv timeout to 5 seconds
parent
c1f4e353
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/auth.spec.pre.in
View file @
5119bf75
...
...
@@ -94,7 +94,7 @@
{ "item_name": "tcp_recv_timeout",
"item_type": "integer",
"item_optional": false,
"item_default":
1
000
"item_default":
5
000
}
],
"commands": [
...
...
src/lib/asiodns/dns_service.cc
View file @
5119bf75
...
...
@@ -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_
(
1
000
)
answer_
(
answer
),
tcp_recv_timeout_
(
5
000
)
{}
IOService
&
io_service_
;
...
...
src/lib/asiodns/tcp_server.cc
View file @
5119bf75
...
...
@@ -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
(
1
000
));
tcp_recv_timeout_
.
reset
(
new
size_t
(
5
000
));
}
namespace
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment