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
22753277
Commit
22753277
authored
Jan 23, 2022
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Fix the issue that forwarded h3 GET request always has chunked TE
parent
02a56493
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
.github/workflows/build.yml
.github/workflows/build.yml
+2
-1
README.rst
README.rst
+2
-1
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+8
-5
src/shrpx_http3_upstream.h
src/shrpx_http3_upstream.h
+1
-1
No files found.
.github/workflows/build.yml
View file @
22753277
...
...
@@ -114,8 +114,9 @@ jobs:
-
name
:
Build nghttp3
if
:
matrix.http3 == 'http3'
run
:
|
git clone
--depth 1 -b v0.1.1
https://github.com/ngtcp2/nghttp3
git clone https://github.com/ngtcp2/nghttp3
cd nghttp3
git checkout 207318c92e0578ac393c31dcd797e4a4dca3e31a
autoreconf -i
./configure --prefix=$PWD/build --enable-lib-only
make -j$(nproc) check
...
...
README.rst
View file @
22753277
...
...
@@ -366,8 +366,9 @@ Build nghttp3:
.. code-block:: text
$ git clone
--depth 1 -b v0.1.1
https://github.com/ngtcp2/nghttp3
$ git clone https://github.com/ngtcp2/nghttp3
$ cd nghttp3
$ git checkout 207318c92e0578ac393c31dcd797e4a4dca3e31a
$ autoreconf -i
$ ./configure --prefix=$PWD/build --enable-lib-only
$ make -j$(nproc)
...
...
src/shrpx_http3_upstream.cc
View file @
22753277
...
...
@@ -1998,7 +1998,7 @@ int Http3Upstream::http_recv_request_header(Downstream *downstream,
}
namespace
{
int
http_end_request_headers
(
nghttp3_conn
*
conn
,
int64_t
stream_id
,
int
http_end_request_headers
(
nghttp3_conn
*
conn
,
int64_t
stream_id
,
int
fin
,
void
*
user_data
,
void
*
stream_user_data
)
{
auto
upstream
=
static_cast
<
Http3Upstream
*>
(
user_data
);
auto
handler
=
upstream
->
get_client_handler
();
...
...
@@ -2008,7 +2008,7 @@ int http_end_request_headers(nghttp3_conn *conn, int64_t stream_id,
return
0
;
}
if
(
upstream
->
http_end_request_headers
(
downstream
)
!=
0
)
{
if
(
upstream
->
http_end_request_headers
(
downstream
,
fin
)
!=
0
)
{
return
NGHTTP3_ERR_CALLBACK_FAILURE
;
}
...
...
@@ -2019,7 +2019,7 @@ int http_end_request_headers(nghttp3_conn *conn, int64_t stream_id,
}
}
// namespace
int
Http3Upstream
::
http_end_request_headers
(
Downstream
*
downstream
)
{
int
Http3Upstream
::
http_end_request_headers
(
Downstream
*
downstream
,
int
fin
)
{
auto
lgconf
=
log_config
();
lgconf
->
update_tstamp
(
std
::
chrono
::
system_clock
::
now
());
auto
&
req
=
downstream
->
request
();
...
...
@@ -2115,8 +2115,11 @@ int Http3Upstream::http_end_request_headers(Downstream *downstream) {
req
.
connect_proto
=
ConnectProto
::
WEBSOCKET
;
}
// We are not sure that request has body or not at the moment.
req
.
http2_expect_body
=
true
;
if
(
!
fin
)
{
req
.
http2_expect_body
=
true
;
}
else
if
(
req
.
fs
.
content_length
==
-
1
)
{
req
.
fs
.
content_length
=
0
;
}
downstream
->
inspect_http2_request
();
...
...
src/shrpx_http3_upstream.h
View file @
22753277
...
...
@@ -125,7 +125,7 @@ public:
int
http_recv_request_header
(
Downstream
*
downstream
,
int32_t
token
,
nghttp3_rcbuf
*
name
,
nghttp3_rcbuf
*
value
,
uint8_t
flags
);
int
http_end_request_headers
(
Downstream
*
downstream
);
int
http_end_request_headers
(
Downstream
*
downstream
,
int
fin
);
int
http_end_stream
(
Downstream
*
downstream
);
void
start_downstream
(
Downstream
*
downstream
);
void
initiate_downstream
(
Downstream
*
downstream
);
...
...
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