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
62411f5a
Commit
62411f5a
authored
Jul 14, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Set client_handler to special frontend objects
parent
e9465f0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/shrpx_client_handler.cc
src/shrpx_client_handler.cc
+10
-4
No files found.
src/shrpx_client_handler.cc
View file @
62411f5a
...
...
@@ -902,10 +902,16 @@ ClientHandler::get_downstream_connection(int &err, Downstream *downstream) {
err
=
0
;
switch
(
faddr_
->
alt_mode
)
{
case
UpstreamAltMode
:
:
API
:
return
std
::
make_unique
<
APIDownstreamConnection
>
(
worker_
);
case
UpstreamAltMode
:
:
HEALTHMON
:
return
std
::
make_unique
<
HealthMonitorDownstreamConnection
>
();
case
UpstreamAltMode
:
:
API
:
{
auto
dconn
=
std
::
make_unique
<
APIDownstreamConnection
>
(
worker_
);
dconn
->
set_client_handler
(
this
);
return
dconn
;
}
case
UpstreamAltMode
:
:
HEALTHMON
:
{
auto
dconn
=
std
::
make_unique
<
HealthMonitorDownstreamConnection
>
();
dconn
->
set_client_handler
(
this
);
return
dconn
;
}
default:
break
;
}
...
...
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