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
ecfd5930
Commit
ecfd5930
authored
Jan 23, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Call ConnectBlocker::on_success when connection is established
parent
3c6b75fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/shrpx_http_downstream_connection.cc
src/shrpx_http_downstream_connection.cc
+4
-3
No files found.
src/shrpx_http_downstream_connection.cc
View file @
ecfd5930
...
...
@@ -194,8 +194,6 @@ int HttpDownstreamConnection::attach_downstream(Downstream *downstream) {
continue
;
}
connect_blocker
->
on_success
();
if
(
LOG_ENABLED
(
INFO
))
{
DCLOG
(
INFO
,
this
)
<<
"Connecting to downstream server"
;
}
...
...
@@ -753,17 +751,20 @@ end:
}
int
HttpDownstreamConnection
::
on_connect
()
{
auto
connect_blocker
=
client_handler_
->
get_http1_connect_blocker
();
if
(
!
util
::
check_socket_connected
(
fd_
))
{
ev_io_stop
(
loop_
,
&
wev_
);
if
(
LOG_ENABLED
(
INFO
))
{
DLOG
(
INFO
,
this
)
<<
"downstream connect failed"
;
}
auto
connect_blocker
=
client_handler_
->
get_http1_connect_blocker
();
connect_blocker
->
on_failure
();
return
-
1
;
}
connect_blocker
->
on_success
();
ev_io_start
(
loop_
,
&
rev_
);
ev_set_cb
(
&
wev_
,
writecb
);
...
...
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