nghttpd: GOAWAY if SSL/TLS requirements for HTTP/2 are not met

This commit is contained in:
Tatsuhiro Tsujikawa 2015-08-20 21:21:56 +09:00
parent fe4efb0a5e
commit 4b4a0f7492
1 changed files with 4 additions and 0 deletions

View File

@ -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();
} }