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
fe752174
Commit
fe752174
authored
May 18, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpd: Close connection after settings timeout and GOAWAY was sent
parent
494ed221
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/HttpServer.cc
src/HttpServer.cc
+5
-1
No files found.
src/HttpServer.cc
View file @
fe752174
...
@@ -326,9 +326,13 @@ void on_session_closed(Http2Handler *hd, int64_t session_id) {
...
@@ -326,9 +326,13 @@ void on_session_closed(Http2Handler *hd, int64_t session_id) {
namespace
{
namespace
{
void
settings_timeout_cb
(
struct
ev_loop
*
loop
,
ev_timer
*
w
,
int
revents
)
{
void
settings_timeout_cb
(
struct
ev_loop
*
loop
,
ev_timer
*
w
,
int
revents
)
{
int
rv
;
auto
hd
=
static_cast
<
Http2Handler
*>
(
w
->
data
);
auto
hd
=
static_cast
<
Http2Handler
*>
(
w
->
data
);
hd
->
terminate_session
(
NGHTTP2_SETTINGS_TIMEOUT
);
hd
->
terminate_session
(
NGHTTP2_SETTINGS_TIMEOUT
);
hd
->
on_write
();
rv
=
hd
->
on_write
();
if
(
rv
==
-
1
)
{
delete_handler
(
hd
);
}
}
}
}
// namespace
}
// namespace
...
...
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