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
744fe91a
Commit
744fe91a
authored
May 12, 2011
by
zhanglikun
Browse files
[trac598_new] Fix the segmentation fault error in the unittest of ForwardQuery.
parent
32872f1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/resolve/recursive_query.cc
View file @
744fe91a
...
...
@@ -824,7 +824,8 @@ public:
query_timeout_
(
query_timeout
),
client_timer
(
io
.
get_io_service
()),
lookup_timer
(
io
.
get_io_service
()),
outstanding_events_
(
0
)
outstanding_events_
(
0
),
callback_called_
(
false
)
{
// Setup the timer to stop trying (lookup_timeout)
if
(
lookup_timeout
>=
0
)
{
...
...
src/lib/resolve/tests/recursive_query_unittest.cc
View file @
744fe91a
...
...
@@ -748,7 +748,7 @@ TEST_F(RecursiveQueryTest, forwardClientTimeout) {
query
.
forward
(
ConstMessagePtr
(
&
query_message
),
answer
,
buffer
,
&
server
,
callback
);
// Run the test
io_service_
->
run
();
EXPECT_EQ
(
callback
->
result
,
MockResolverCallback
::
SUCCESS
);
EXPECT_EQ
(
callback
->
result
,
MockResolverCallback
::
FAILURE
);
}
// If we set lookup timeout to lower than querytimeout, the lookup
...
...
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