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
f5ddd7f4
Commit
f5ddd7f4
authored
Nov 04, 2017
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Make initial_addr_idx_ unsigned
parent
88abbce7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
src/shrpx_client_handler.cc
src/shrpx_client_handler.cc
+1
-1
src/shrpx_http_downstream_connection.cc
src/shrpx_http_downstream_connection.cc
+1
-1
src/shrpx_http_downstream_connection.h
src/shrpx_http_downstream_connection.h
+3
-4
No files found.
src/shrpx_client_handler.cc
View file @
f5ddd7f4
...
...
@@ -1171,7 +1171,7 @@ ClientHandler::get_downstream_connection(int &err, Downstream *downstream) {
}
dconn
=
make_unique
<
HttpDownstreamConnection
>
(
group
,
-
1
,
conn_
.
loop
,
worker_
);
make_unique
<
HttpDownstreamConnection
>
(
group
,
0
,
conn_
.
loop
,
worker_
);
}
dconn
->
set_client_handler
(
this
);
...
...
src/shrpx_http_downstream_connection.cc
View file @
f5ddd7f4
...
...
@@ -182,7 +182,7 @@ void connectcb(struct ev_loop *loop, ev_io *w, int revents) {
}
// namespace
HttpDownstreamConnection
::
HttpDownstreamConnection
(
const
std
::
shared_ptr
<
DownstreamAddrGroup
>
&
group
,
s
s
ize_t
initial_addr_idx
,
const
std
::
shared_ptr
<
DownstreamAddrGroup
>
&
group
,
size_t
initial_addr_idx
,
struct
ev_loop
*
loop
,
Worker
*
worker
)
:
conn_
(
loop
,
-
1
,
nullptr
,
worker
->
get_mcpool
(),
worker
->
get_downstream_config
()
->
timeout
.
write
,
...
...
src/shrpx_http_downstream_connection.h
View file @
f5ddd7f4
...
...
@@ -44,7 +44,7 @@ struct DNSQuery;
class
HttpDownstreamConnection
:
public
DownstreamConnection
{
public:
HttpDownstreamConnection
(
const
std
::
shared_ptr
<
DownstreamAddrGroup
>
&
group
,
s
s
ize_t
initial_addr_idx
,
struct
ev_loop
*
loop
,
size_t
initial_addr_idx
,
struct
ev_loop
*
loop
,
Worker
*
worker
);
virtual
~
HttpDownstreamConnection
();
virtual
int
attach_downstream
(
Downstream
*
downstream
);
...
...
@@ -109,9 +109,8 @@ private:
IOControl
ioctrl_
;
http_parser
response_htp_
;
// Index to backend address. If client affinity is enabled, it is
// the index to affinity_hash. Otherwise, it is the index to the
// backend addresses.
ssize_t
initial_addr_idx_
;
// the index to affinity_hash. Otherwise, it is 0, and not used.
size_t
initial_addr_idx_
;
// true if first write of reused connection succeeded. For
// convenience, this is initialized as true.
bool
reuse_first_write_done_
;
...
...
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