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
31595c24
Commit
31595c24
authored
Apr 03, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Embed nghttp2_ext_frame_payload into nghttp2_outbound_item
parent
795ee8c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
lib/nghttp2_outbound_item.c
lib/nghttp2_outbound_item.c
+0
-2
lib/nghttp2_outbound_item.h
lib/nghttp2_outbound_item.h
+3
-0
lib/nghttp2_submit.c
lib/nghttp2_submit.c
+1
-8
No files found.
lib/nghttp2_outbound_item.c
View file @
31595c24
...
...
@@ -90,8 +90,6 @@ void nghttp2_outbound_item_free(nghttp2_outbound_item *item, nghttp2_mem *mem) {
assert
(
0
);
break
;
}
nghttp2_mem_free
(
mem
,
frame
->
ext
.
payload
);
}
}
}
...
...
lib/nghttp2_outbound_item.h
View file @
31595c24
...
...
@@ -107,6 +107,9 @@ typedef struct nghttp2_outbound_item nghttp2_outbound_item;
struct
nghttp2_outbound_item
{
nghttp2_frame
frame
;
/* Storage for extension frame payload. frame->ext.payload points
to this structure to avoid frequent memory allocation. */
nghttp2_ext_frame_payload
ext_frame_payload
;
nghttp2_aux_data
aux_data
;
/* The priority used in priority comparion. Smaller is served
ealier. For PING, SETTINGS and non-DATA frames (excluding
...
...
lib/nghttp2_submit.c
View file @
31595c24
...
...
@@ -470,11 +470,7 @@ int nghttp2_submit_altsvc(nghttp2_session *session, uint8_t flags _U_,
item
->
aux_data
.
ext
.
builtin
=
1
;
altsvc
=
nghttp2_mem_malloc
(
mem
,
sizeof
(
nghttp2_ext_altsvc
));
if
(
altsvc
==
NULL
)
{
rv
=
NGHTTP2_ERR_NOMEM
;
goto
fail_altsvc_malloc
;
}
altsvc
=
&
item
->
ext_frame_payload
.
altsvc
;
frame
=
&
item
->
frame
;
frame
->
ext
.
payload
=
altsvc
;
...
...
@@ -485,7 +481,6 @@ int nghttp2_submit_altsvc(nghttp2_session *session, uint8_t flags _U_,
rv
=
nghttp2_session_add_item
(
session
,
item
);
if
(
rv
!=
0
)
{
nghttp2_frame_altsvc_free
(
&
frame
->
ext
,
mem
);
nghttp2_mem_free
(
mem
,
frame
->
ext
.
payload
);
nghttp2_mem_free
(
mem
,
item
);
return
rv
;
...
...
@@ -493,8 +488,6 @@ int nghttp2_submit_altsvc(nghttp2_session *session, uint8_t flags _U_,
return
0
;
fail_altsvc_malloc:
free
(
item
);
fail_item_malloc:
free
(
buf
);
...
...
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