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
c53c1dc6
Commit
c53c1dc6
authored
Apr 03, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttp2_session_resume_data: Return error if no deferred data exist
parent
580a19e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+2
-1
lib/nghttp2_session.c
lib/nghttp2_session.c
+2
-5
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
c53c1dc6
...
...
@@ -1848,7 +1848,8 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
* negative error codes:
*
* :enum:`NGHTTP2_ERR_INVALID_ARGUMENT`
* The stream does not exist or no deferred data exist.
* The stream does not exist; or no deferred data exist; or data
* was deferred by flow control.
* :enum:`NGHTTP2_ERR_NOMEM`
* Out of memory.
*/
...
...
lib/nghttp2_session.c
View file @
c53c1dc6
...
...
@@ -5468,14 +5468,11 @@ int nghttp2_session_resume_data(nghttp2_session *session, int32_t stream_id)
nghttp2_stream
*
stream
;
stream
=
nghttp2_session_get_stream
(
session
,
stream_id
);
if
(
stream
==
NULL
||
nghttp2_stream_check_deferred_by_flow_control
(
stream
))
{
nghttp2_stream_check_deferred_by_flow_control
(
stream
)
||
!
nghttp2_stream_check_deferred_data
(
stream
))
{
return
NGHTTP2_ERR_INVALID_ARGUMENT
;
}
if
(
!
nghttp2_stream_check_deferred_data
(
stream
))
{
return
0
;
}
rv
=
nghttp2_stream_resume_deferred_data
(
stream
,
&
session
->
ob_pq
);
if
(
nghttp2_is_fatal
(
rv
))
{
...
...
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