nghttp: Use nghttp2_session_fail_session instead of nghttp2_submit_goaway
This commit is contained in:
parent
946d3150ba
commit
f8356dd037
|
@ -1084,8 +1084,7 @@ namespace {
|
||||||
void settings_timeout_cb(evutil_socket_t fd, short what, void *arg)
|
void settings_timeout_cb(evutil_socket_t fd, short what, void *arg)
|
||||||
{
|
{
|
||||||
auto client = get_session(arg);
|
auto client = get_session(arg);
|
||||||
nghttp2_submit_goaway(client->session, NGHTTP2_FLAG_NONE,
|
nghttp2_session_fail_session(client->session, NGHTTP2_SETTINGS_TIMEOUT);
|
||||||
NGHTTP2_SETTINGS_TIMEOUT, nullptr, 0);
|
|
||||||
client->on_write();
|
client->on_write();
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -1182,8 +1181,7 @@ int on_stream_close_callback
|
||||||
(*itr).second->record_complete_time();
|
(*itr).second->record_complete_time();
|
||||||
++client->complete;
|
++client->complete;
|
||||||
if(client->all_requests_processed()) {
|
if(client->all_requests_processed()) {
|
||||||
nghttp2_submit_goaway(session, NGHTTP2_FLAG_NONE, NGHTTP2_NO_ERROR,
|
nghttp2_session_fail_session(session, NGHTTP2_NO_ERROR);
|
||||||
nullptr, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue