nghttpd: GOAWAY if SSL/TLS requirements for HTTP/2 are not met
This commit is contained in:
parent
fe4efb0a5e
commit
4b4a0f7492
|
@ -710,6 +710,10 @@ int Http2Handler::connection_made() {
|
||||||
|
|
||||||
ev_timer_start(sessions_->get_loop(), &settings_timerev_);
|
ev_timer_start(sessions_->get_loop(), &settings_timerev_);
|
||||||
|
|
||||||
|
if (!nghttp2::ssl::check_http2_requirement(ssl_)) {
|
||||||
|
terminate_session(NGHTTP2_INADEQUATE_SECURITY);
|
||||||
|
}
|
||||||
|
|
||||||
return on_write();
|
return on_write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue