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
6f52da83
Commit
6f52da83
authored
Apr 16, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Fix bug that server push from mruby script did not work
parent
4041d1eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+2
-1
src/shrpx_upstream.h
src/shrpx_upstream.h
+3
-0
No files found.
src/shrpx_http2_upstream.cc
View file @
6f52da83
...
...
@@ -1893,7 +1893,8 @@ bool Http2Upstream::push_enabled() const {
int
Http2Upstream
::
initiate_push
(
Downstream
*
downstream
,
const
StringRef
&
uri
)
{
int
rv
;
if
(
uri
.
empty
()
||
!
push_enabled
()
||
(
downstream
->
get_stream_id
()
%
2
))
{
if
(
uri
.
empty
()
||
!
push_enabled
()
||
(
downstream
->
get_stream_id
()
%
2
)
==
0
)
{
return
0
;
}
...
...
src/shrpx_upstream.h
View file @
6f52da83
...
...
@@ -68,6 +68,9 @@ public:
virtual
int
send_reply
(
Downstream
*
downstream
,
const
uint8_t
*
body
,
size_t
bodylen
)
=
0
;
// Starts server push. The |downstream| is an associated stream for
// the pushed resource. This function returns 0 if it succeeds,
// otherwise -1.
virtual
int
initiate_push
(
Downstream
*
downstream
,
const
StringRef
&
uri
)
=
0
;
// Fills response data in |iov| whose capacity is |iovcnt|. Returns
...
...
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