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
1fd5fdd5
Commit
1fd5fdd5
authored
Feb 16, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Remove redundant SETTINGS_ENABLE_PUSH from server side
parent
88607f09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
src/HttpServer.cc
src/HttpServer.cc
+1
-3
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+1
-4
No files found.
src/HttpServer.cc
View file @
1fd5fdd5
...
...
@@ -368,11 +368,9 @@ int Http2Handler::on_connect()
return
r
;
}
nghttp2_settings_entry
entry
[
4
];
size_t
niv
=
2
;
size_t
niv
=
1
;
entry
[
0
].
settings_id
=
NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS
;
entry
[
0
].
value
=
100
;
entry
[
1
].
settings_id
=
NGHTTP2_SETTINGS_ENABLE_PUSH
;
entry
[
1
].
value
=
0
;
if
(
sessions_
->
get_config
()
->
header_table_size
>=
0
)
{
entry
[
niv
].
settings_id
=
NGHTTP2_SETTINGS_HEADER_TABLE_SIZE
;
entry
[
niv
].
value
=
sessions_
->
get_config
()
->
header_table_size
;
...
...
src/shrpx_http2_upstream.cc
View file @
1fd5fdd5
...
...
@@ -537,16 +537,13 @@ Http2Upstream::Http2Upstream(ClientHandler *handler)
flow_control_
=
true
;
// TODO Maybe call from outside?
nghttp2_settings_entry
entry
[
3
];
nghttp2_settings_entry
entry
[
2
];
entry
[
0
].
settings_id
=
NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS
;
entry
[
0
].
value
=
get_config
()
->
http2_max_concurrent_streams
;
entry
[
1
].
settings_id
=
NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE
;
entry
[
1
].
value
=
(
1
<<
get_config
()
->
http2_upstream_window_bits
)
-
1
;
entry
[
2
].
settings_id
=
NGHTTP2_SETTINGS_ENABLE_PUSH
;
entry
[
2
].
value
=
0
;
rv
=
nghttp2_submit_settings
(
session_
,
NGHTTP2_FLAG_NONE
,
entry
,
sizeof
(
entry
)
/
sizeof
(
nghttp2_settings_entry
));
...
...
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