Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
d2ba169f
Commit
d2ba169f
authored
Mar 31, 2017
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asio: Fix crash if connect takes longer time than ping interval
parent
a629a0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/asio_client_session_impl.cc
src/asio_client_session_impl.cc
+2
-1
No files found.
src/asio_client_session_impl.cc
View file @
d2ba169f
...
...
@@ -84,7 +84,6 @@ void session_impl::start_resolve(const std::string &host,
});
deadline_
.
async_wait
(
std
::
bind
(
&
session_impl
::
handle_deadline
,
self
));
start_ping
();
}
void
session_impl
::
handle_deadline
()
{
...
...
@@ -135,6 +134,8 @@ void session_impl::connected(tcp::resolver::iterator endpoint_it) {
do_write
();
do_read
();
start_ping
();
auto
&
connect_cb
=
on_connect
();
if
(
connect_cb
)
{
connect_cb
(
endpoint_it
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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