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
a16daf10
Commit
a16daf10
authored
Apr 13, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Try next HTTP/1 backend address when connection cannot be made
parent
b6708a4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/shrpx_http_downstream_connection.cc
src/shrpx_http_downstream_connection.cc
+11
-2
No files found.
src/shrpx_http_downstream_connection.cc
View file @
a16daf10
...
...
@@ -102,6 +102,17 @@ void connectcb(struct ev_loop *loop, ev_io *w, int revents) {
auto
upstream
=
downstream
->
get_upstream
();
auto
handler
=
upstream
->
get_client_handler
();
if
(
dconn
->
connected
()
!=
0
)
{
downstream
->
pop_downstream_connection
();
auto
ndconn
=
handler
->
get_downstream_connection
(
downstream
);
if
(
ndconn
)
{
if
(
downstream
->
attach_downstream_connection
(
std
::
move
(
ndconn
))
==
0
)
{
return
;
}
}
downstream
->
set_request_state
(
Downstream
::
CONNECT_FAIL
);
if
(
upstream
->
on_downstream_abort_request
(
downstream
,
503
)
!=
0
)
{
delete
handler
;
}
...
...
@@ -1056,8 +1067,6 @@ int HttpDownstreamConnection::connected() {
downstream_failure
(
addr_
);
downstream_
->
set_request_state
(
Downstream
::
CONNECT_FAIL
);
return
-
1
;
}
...
...
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