mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
nghttpx: No need to check activeness of SETTINGS ACK timer
We don't have to check activeness of SETTINGS ACK timer since we only send SETTINGS frame without ACK only once per session at the moment.
This commit is contained in:
@@ -756,10 +756,6 @@ int on_stream_close_callback(nghttp2_session *session, int32_t stream_id,
|
|||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void Http2Session::start_settings_timer() {
|
void Http2Session::start_settings_timer() {
|
||||||
if (ev_is_active(&settings_timer_)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ev_timer_again(conn_.loop, &settings_timer_);
|
ev_timer_again(conn_.loop, &settings_timer_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -146,9 +146,6 @@ int Http2Upstream::upgrade_upstream(HttpsUpstream *http) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Http2Upstream::start_settings_timer() {
|
void Http2Upstream::start_settings_timer() {
|
||||||
if (ev_is_active(&settings_timer_)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ev_timer_start(handler_->get_loop(), &settings_timer_);
|
ev_timer_start(handler_->get_loop(), &settings_timer_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -620,10 +620,6 @@ void LiveCheck::on_success() {
|
|||||||
int LiveCheck::noop() { return 0; }
|
int LiveCheck::noop() { return 0; }
|
||||||
|
|
||||||
void LiveCheck::start_settings_timer() {
|
void LiveCheck::start_settings_timer() {
|
||||||
if (ev_is_active(&settings_timer_)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ev_timer_set(&settings_timer_, 10., 0.);
|
ev_timer_set(&settings_timer_, 10., 0.);
|
||||||
ev_timer_start(conn_.loop, &settings_timer_);
|
ev_timer_start(conn_.loop, &settings_timer_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user