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
bc8f88f5
Commit
bc8f88f5
authored
Sep 11, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile with the latest ngtcp2
parent
10c9d917
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
src/h2load_quic.cc
src/h2load_quic.cc
+8
-2
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+7
-2
No files found.
src/h2load_quic.cc
View file @
bc8f88f5
...
...
@@ -108,9 +108,15 @@ int Client::quic_acked_stream_data_offset(int64_t stream_id, size_t datalen) {
}
namespace
{
int
stream_close
(
ngtcp2_conn
*
conn
,
int64_t
stream_id
,
uint64_t
app_error_code
,
void
*
user_data
,
void
*
stream_user_data
)
{
int
stream_close
(
ngtcp2_conn
*
conn
,
uint32_t
flags
,
int64_t
stream_id
,
uint64_t
app_error_code
,
void
*
user_data
,
void
*
stream_user_data
)
{
auto
c
=
static_cast
<
Client
*>
(
user_data
);
if
(
!
(
flags
&
NGTCP2_STREAM_CLOSE_FLAG_APP_ERROR_CODE_SET
))
{
app_error_code
=
NGHTTP3_H3_NO_ERROR
;
}
if
(
c
->
quic_stream_close
(
stream_id
,
app_error_code
)
!=
0
)
{
return
-
1
;
}
...
...
src/shrpx_http3_upstream.cc
View file @
bc8f88f5
...
...
@@ -306,10 +306,15 @@ int Http3Upstream::recv_stream_data(uint32_t flags, int64_t stream_id,
}
namespace
{
int
stream_close
(
ngtcp2_conn
*
conn
,
int64_t
stream_id
,
uint64_t
app_error_code
,
void
*
user_data
,
void
*
stream_user_data
)
{
int
stream_close
(
ngtcp2_conn
*
conn
,
uint32_t
flags
,
int64_t
stream_id
,
uint64_t
app_error_code
,
void
*
user_data
,
void
*
stream_user_data
)
{
auto
upstream
=
static_cast
<
Http3Upstream
*>
(
user_data
);
if
(
!
(
flags
&
NGTCP2_STREAM_CLOSE_FLAG_APP_ERROR_CODE_SET
))
{
app_error_code
=
NGHTTP3_H3_NO_ERROR
;
}
if
(
upstream
->
stream_close
(
stream_id
,
app_error_code
)
!=
0
)
{
return
NGTCP2_ERR_CALLBACK_FAILURE
;
}
...
...
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