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
b6d039e8
Commit
b6d039e8
authored
Jan 18, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make nghttp2_is_fatal public API
parent
2222b5ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+8
-0
lib/nghttp2_session.c
lib/nghttp2_session.c
+2
-5
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
b6d039e8
...
...
@@ -2374,6 +2374,14 @@ int nghttp2_gzip_inflate(nghttp2_gzip *inflater,
*/
nghttp2_info
*
nghttp2_version
(
int
least_version
);
/**
* @function
*
* Returns nonzero if the :type:`nghttp2_error` library error code
* |lib_error| is fatal.
*/
int
nghttp2_is_fatal
(
int
lib_error
);
#ifdef __cplusplus
}
#endif
...
...
lib/nghttp2_session.c
View file @
b6d039e8
...
...
@@ -64,12 +64,9 @@ static int nghttp2_is_non_fatal(int error)
return
error
<
0
&&
error
>
NGHTTP2_ERR_FATAL
;
}
/*
* Returns non-zero if |error| is fatal error.
*/
static
int
nghttp2_is_fatal
(
int
error
)
int
nghttp2_is_fatal
(
int
lib_error
)
{
return
error
<
NGHTTP2_ERR_FATAL
;
return
lib_
error
<
NGHTTP2_ERR_FATAL
;
}
/* Returns the pushed stream's priority based on the associated stream
...
...
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