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
6364ae1a
Commit
6364ae1a
authored
Feb 11, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nghttp2_active_outbound_item is not reset on DATA deferred
parent
16b5e99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lib/nghttp2_session.c
lib/nghttp2_session.c
+7
-0
No files found.
lib/nghttp2_session.c
View file @
6364ae1a
...
...
@@ -378,6 +378,8 @@ static void nghttp2_session_ob_pq_free(nghttp2_pq *pq)
static
void
nghttp2_active_outbound_item_reset
(
nghttp2_active_outbound_item
*
aob
)
{
DEBUGF
(
fprintf
(
stderr
,
"reset nghttp2_active_outbound_item
\n
"
));
DEBUGF
(
fprintf
(
stderr
,
"aob->item = %p
\n
"
,
aob
->
item
));
nghttp2_outbound_item_free
(
aob
->
item
);
free
(
aob
->
item
);
aob
->
item
=
NULL
;
...
...
@@ -1321,6 +1323,8 @@ static ssize_t nghttp2_session_prep_frame(nghttp2_session *session,
next_readmax
=
nghttp2_session_next_data_read
(
session
,
stream
);
if
(
next_readmax
==
0
)
{
nghttp2_stream_defer_data
(
stream
,
item
,
NGHTTP2_DEFERRED_FLOW_CONTROL
);
session
->
aob
.
item
=
NULL
;
nghttp2_active_outbound_item_reset
(
&
session
->
aob
);
return
NGHTTP2_ERR_DEFERRED
;
}
framebuflen
=
nghttp2_session_pack_data
(
session
,
...
...
@@ -1331,6 +1335,8 @@ static ssize_t nghttp2_session_prep_frame(nghttp2_session *session,
data_frame
);
if
(
framebuflen
==
NGHTTP2_ERR_DEFERRED
)
{
nghttp2_stream_defer_data
(
stream
,
item
,
NGHTTP2_DEFERRED_NONE
);
session
->
aob
.
item
=
NULL
;
nghttp2_active_outbound_item_reset
(
&
session
->
aob
);
return
NGHTTP2_ERR_DEFERRED
;
}
else
if
(
framebuflen
==
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
)
{
r
=
nghttp2_session_add_rst_stream
(
session
,
data_frame
->
hd
.
stream_id
,
...
...
@@ -1803,6 +1809,7 @@ int nghttp2_session_send(nghttp2_session *session)
}
nghttp2_outbound_item_free
(
item
);
free
(
item
);
nghttp2_active_outbound_item_reset
(
&
session
->
aob
);
if
(
framebuflen
==
NGHTTP2_ERR_HEADER_COMP
)
{
/* If header compression error occurred, should terminiate
...
...
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