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
649c69fa
Commit
649c69fa
authored
Sep 04, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Do not send CONNECTION_CLOSE on idle timeout
parent
9fd0b879
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/shrpx_http3_upstream.cc
src/shrpx_http3_upstream.cc
+6
-3
src/shrpx_http3_upstream.h
src/shrpx_http3_upstream.h
+2
-0
No files found.
src/shrpx_http3_upstream.cc
View file @
649c69fa
...
...
@@ -51,7 +51,7 @@ void idle_timeoutcb(struct ev_loop *loop, ev_timer *w, int revents) {
ULOG
(
INFO
,
upstream
)
<<
"QUIC idle timeout"
;
}
// TODO Implement draining period.
upstream
->
idle_close
();
auto
handler
=
upstream
->
get_client_handler
();
...
...
@@ -116,7 +116,8 @@ Http3Upstream::Http3Upstream(ClientHandler *handler)
tls_alert_
{
0
},
httpconn_
{
nullptr
},
downstream_queue_
{
downstream_queue_size
(
handler
->
get_worker
()),
!
get_config
()
->
http2_proxy
}
{
!
get_config
()
->
http2_proxy
},
idle_close_
{
false
}
{
ev_timer_init
(
&
timer_
,
timeoutcb
,
0.
,
0.
);
timer_
.
data
=
this
;
...
...
@@ -1276,7 +1277,7 @@ void Http3Upstream::on_handler_delete() {
// If this is not idle close, send APPLICATION_CLOSE since this
// might come before idle close.
if
(
!
ngtcp2_conn_is_in_closing_period
(
conn_
)
&&
if
(
!
idle_close_
&&
!
ngtcp2_conn_is_in_closing_period
(
conn_
)
&&
!
ngtcp2_conn_is_in_draining_period
(
conn_
))
{
ngtcp2_path_storage
ps
;
ngtcp2_pkt_info
pi
;
...
...
@@ -2498,4 +2499,6 @@ int Http3Upstream::submit_goaway() {
return
0
;
}
void
Http3Upstream
::
idle_close
()
{
idle_close_
=
true
;
}
}
// namespace shrpx
src/shrpx_http3_upstream.h
View file @
649c69fa
...
...
@@ -147,6 +147,7 @@ public:
int
check_shutdown
();
int
start_graceful_shutdown
();
int
submit_goaway
();
void
idle_close
();
private:
ClientHandler
*
handler_
;
...
...
@@ -159,6 +160,7 @@ private:
uint8_t
tls_alert_
;
nghttp3_conn
*
httpconn_
;
DownstreamQueue
downstream_queue_
;
bool
idle_close_
;
};
}
// namespace shrpx
...
...
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