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
07d85808
Commit
07d85808
authored
May 24, 2017
by
Marcin Siodelski
Browse files
[5261] Eliminated valgrind errors in libkea-http.
parent
2d2bc63d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/http/connection.cc
View file @
07d85808
...
...
@@ -148,8 +148,12 @@ HttpConnection::acceptorCallback(const boost::system::error_code& ec) {
HTTP_REQUEST_RECEIVE_START
)
.
arg
(
getRemoteEndpointAddressAsText
())
.
arg
(
static_cast
<
unsigned
>
(
request_timeout_
/
1000
));
// Pass raw pointer rather than shared_ptr to this object,
// because IntervalTimer already passes shared pointer to the
// IntervalTimerImpl to make sure that the callback remains
// valid.
request_timer_
.
setup
(
boost
::
bind
(
&
HttpConnection
::
requestTimeoutCallback
,
shared_from_
this
()
),
this
),
request_timeout_
,
IntervalTimer
::
ONE_SHOT
);
doRead
();
}
...
...
src/lib/http/connection_pool.cc
View file @
07d85808
...
...
@@ -19,6 +19,7 @@ HttpConnectionPool::start(const HttpConnectionPtr& connection) {
void
HttpConnectionPool
::
stop
(
const
HttpConnectionPtr
&
connection
)
{
connections_
.
remove
(
connection
);
connection
->
close
();
}
void
...
...
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