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
9228e223
Commit
9228e223
authored
May 06, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove NGHTTP2_ERR_GZIP error code
parent
43fb7f70
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
22 deletions
+6
-22
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+0
-4
lib/nghttp2_helper.c
lib/nghttp2_helper.c
+0
-2
src/nghttp2_gzip.c
src/nghttp2_gzip.c
+4
-4
src/nghttp2_gzip.h
src/nghttp2_gzip.h
+2
-12
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
9228e223
...
...
@@ -284,10 +284,6 @@ typedef enum {
* requested operation.
*/
NGHTTP2_ERR_INVALID_STATE
=
-
519
,
/**
* The gzip error.
*/
NGHTTP2_ERR_GZIP
=
-
520
,
/**
* The user callback function failed due to the temporal error.
*/
...
...
lib/nghttp2_helper.c
View file @
9228e223
...
...
@@ -201,8 +201,6 @@ const char* nghttp2_strerror(int error_code)
return
"Invalid header block"
;
case
NGHTTP2_ERR_INVALID_STATE
:
return
"Invalid state"
;
case
NGHTTP2_ERR_GZIP
:
return
"Gzip error"
;
case
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
:
return
"The user callback function failed due to the temporal error"
;
case
NGHTTP2_ERR_FRAME_SIZE_ERROR
:
...
...
src/nghttp2_gzip.c
View file @
9228e223
...
...
@@ -31,7 +31,7 @@ int nghttp2_gzip_inflate_new(nghttp2_gzip **inflater_ptr)
int
rv
;
*
inflater_ptr
=
malloc
(
sizeof
(
nghttp2_gzip
));
if
(
*
inflater_ptr
==
NULL
)
{
return
NGHTTP2_ERR_NOMEM
;
return
-
1
;
}
(
*
inflater_ptr
)
->
finished
=
0
;
(
*
inflater_ptr
)
->
zst
.
next_in
=
Z_NULL
;
...
...
@@ -42,7 +42,7 @@ int nghttp2_gzip_inflate_new(nghttp2_gzip **inflater_ptr)
rv
=
inflateInit2
(
&
(
*
inflater_ptr
)
->
zst
,
47
);
if
(
rv
!=
Z_OK
)
{
free
(
*
inflater_ptr
);
return
NGHTTP2_ERR_GZIP
;
return
-
1
;
}
return
0
;
}
...
...
@@ -61,7 +61,7 @@ int nghttp2_gzip_inflate(nghttp2_gzip *inflater,
{
int
rv
;
if
(
inflater
->
finished
)
{
return
NGHTTP2_ERR_GZIP
;
return
-
1
;
}
inflater
->
zst
.
avail_in
=
*
inlen_ptr
;
inflater
->
zst
.
next_in
=
(
unsigned
char
*
)
in
;
...
...
@@ -82,7 +82,7 @@ int nghttp2_gzip_inflate(nghttp2_gzip *inflater,
case
Z_STREAM_ERROR
:
case
Z_NEED_DICT
:
case
Z_MEM_ERROR
:
return
NGHTTP2_ERR_GZIP
;
return
-
1
;
default:
assert
(
0
);
/* We need this for some compilers */
...
...
src/nghttp2_gzip.h
View file @
9228e223
...
...
@@ -51,13 +51,7 @@ typedef struct {
* A helper function to set up a per request gzip stream to inflate
* data.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*
* :enum:`NGHTTP2_ERR_GZIP`
* The initialization of gzip stream failed.
* :enum:`NGHTTP2_ERR_NOMEM`
* Out of memory.
* This function returns 0 if it succeeds, or -1.
*/
int
nghttp2_gzip_inflate_new
(
nghttp2_gzip
**
inflater_ptr
);
...
...
@@ -77,11 +71,7 @@ void nghttp2_gzip_inflate_del(nghttp2_gzip *inflater);
* the number of data written in |out|. Similarly, |*inlen_ptr| is
* updated to represent the number of input bytes processed.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*
* :enum:`NGHTTP2_ERR_GZIP`
* The inflation of gzip stream failed.
* This function returns 0 if it succeeds, or -1.
*
* The example follows::
*
...
...
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