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
c9aba4ea
Commit
c9aba4ea
authored
Mar 27, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Don't use data_prd.source.ptr
parent
2cee80ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/shrpx_http2_downstream_connection.cc
src/shrpx_http2_downstream_connection.cc
+2
-4
No files found.
src/shrpx_http2_downstream_connection.cc
View file @
c9aba4ea
...
...
@@ -173,7 +173,7 @@ ssize_t http2_data_read_callback(nghttp2_session *session, int32_t stream_id,
if
(
!
sd
||
!
sd
->
dconn
)
{
return
NGHTTP2_ERR_DEFERRED
;
}
auto
dconn
=
s
tatic_cast
<
Http2DownstreamConnection
*>
(
source
->
ptr
)
;
auto
dconn
=
s
d
->
dconn
;
auto
downstream
=
dconn
->
get_downstream
();
if
(
!
downstream
)
{
// In this case, RST_STREAM should have been issued. But depending
...
...
@@ -453,9 +453,7 @@ int Http2DownstreamConnection::push_request_headers() {
if
(
req
.
method
==
HTTP_CONNECT
||
chunked_encoding
||
content_length
||
req
.
http2_expect_body
)
{
// Request-body is expected.
nghttp2_data_provider
data_prd
;
data_prd
.
source
.
ptr
=
this
;
data_prd
.
read_callback
=
http2_data_read_callback
;
nghttp2_data_provider
data_prd
{{},
http2_data_read_callback
};
rv
=
http2session_
->
submit_request
(
this
,
nva
.
data
(),
nva
.
size
(),
&
data_prd
);
}
else
{
rv
=
http2session_
->
submit_request
(
this
,
nva
.
data
(),
nva
.
size
(),
nullptr
);
...
...
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