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
7ab42062
Commit
7ab42062
authored
Feb 14, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tear down connection if SETTINGS makes window size overflow
parent
e74fbdf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
lib/nghttp2_session.c
lib/nghttp2_session.c
+4
-4
tests/nghttp2_session_test.c
tests/nghttp2_session_test.c
+4
-1
No files found.
lib/nghttp2_session.c
View file @
7ab42062
...
...
@@ -2562,8 +2562,8 @@ static int nghttp2_update_remote_initial_window_size_func
arg
->
new_window_size
,
arg
->
old_window_size
);
if
(
rv
!=
0
)
{
return
nghttp2_session_
add_rst_stream
(
arg
->
session
,
stream
->
stream_id
,
NGHTTP2_FLOW_CONTROL_ERROR
);
return
nghttp2_session_
terminate_session
(
arg
->
session
,
NGHTTP2_FLOW_CONTROL_ERROR
);
}
/* If window size gets positive, push deferred DATA frame to
outbound queue. */
...
...
@@ -2619,8 +2619,8 @@ static int nghttp2_update_local_initial_window_size_func
arg
->
new_window_size
,
arg
->
old_window_size
);
if
(
rv
!=
0
)
{
return
nghttp2_session_
add_rst_stream
(
arg
->
session
,
stream
->
stream_id
,
NGHTTP2_FLOW_CONTROL_ERROR
);
return
nghttp2_session_
terminate_session
(
arg
->
session
,
NGHTTP2_FLOW_CONTROL_ERROR
);
}
if
(
!
(
arg
->
session
->
opt_flags
&
NGHTTP2_OPTMASK_NO_AUTO_STREAM_WINDOW_UPDATE
))
{
...
...
tests/nghttp2_session_test.c
View file @
7ab42062
...
...
@@ -2791,7 +2791,10 @@ void test_nghttp2_submit_settings_update_local_window_size(void)
CU_ASSERT
(
0
==
nghttp2_session_send
(
session
));
CU_ASSERT
(
0
==
nghttp2_session_on_settings_received
(
session
,
&
ack_frame
,
0
));
CU_ASSERT
(
NGHTTP2_STREAM_CLOSING
==
stream
->
state
);
item
=
nghttp2_session_get_next_ob_item
(
session
);
CU_ASSERT
(
NGHTTP2_GOAWAY
==
OB_CTRL_TYPE
(
item
));
CU_ASSERT
(
NGHTTP2_FLOW_CONTROL_ERROR
==
OB_CTRL
(
item
)
->
goaway
.
error_code
);
nghttp2_session_del
(
session
);
nghttp2_frame_settings_free
(
&
ack_frame
.
settings
);
...
...
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