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
9d15f9b0
Commit
9d15f9b0
authored
Feb 23, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpd: Start SETTINGS timer after it is written to output buffer
parent
3e72711e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
src/HttpServer.cc
src/HttpServer.cc
+13
-2
src/HttpServer.h
src/HttpServer.h
+1
-0
No files found.
src/HttpServer.cc
View file @
9d15f9b0
...
...
@@ -577,6 +577,10 @@ Http2Handler::WriteBuf *Http2Handler::get_wb() { return &wb_; }
int
Http2Handler
::
setup_bev
()
{
return
0
;
}
void
Http2Handler
::
start_settings_timer
()
{
ev_timer_start
(
sessions_
->
get_loop
(),
&
settings_timerev_
);
}
int
Http2Handler
::
fill_wb
()
{
if
(
data_pending_
)
{
auto
n
=
std
::
min
(
wb_
.
wleft
(),
data_pendinglen_
);
...
...
@@ -870,8 +874,6 @@ int Http2Handler::connection_made() {
}
}
ev_timer_start
(
sessions_
->
get_loop
(),
&
settings_timerev_
);
if
(
ssl_
&&
!
nghttp2
::
ssl
::
check_http2_requirement
(
ssl_
))
{
terminate_session
(
NGHTTP2_INADEQUATE_SECURITY
);
}
...
...
@@ -1538,6 +1540,15 @@ int hd_on_frame_send_callback(nghttp2_session *session,
break
;
}
case
NGHTTP2_SETTINGS
:
{
if
(
frame
->
hd
.
flags
&
NGHTTP2_FLAG_ACK
)
{
return
0
;
}
hd
->
start_settings_timer
();
break
;
}
case
NGHTTP2_PUSH_PROMISE
:
{
auto
promised_stream_id
=
frame
->
push_promise
.
promised_stream_id
;
auto
promised_stream
=
hd
->
get_stream
(
promised_stream_id
);
...
...
src/HttpServer.h
View file @
9d15f9b0
...
...
@@ -138,6 +138,7 @@ public:
void
remove_self
();
int
setup_bev
();
void
start_settings_timer
();
int
on_read
();
int
on_write
();
int
connection_made
();
...
...
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