More useful warning on NPN negotiation failure due to draft version mismatch

This commit is contained in:
David Weekly 2013-12-31 00:12:21 +00:00
parent cc954e077f
commit 19e187cd92
1 changed files with 1 additions and 0 deletions

View File

@ -1243,6 +1243,7 @@ int client_select_next_proto_cb(SSL* ssl,
}
if(nghttp2_select_next_protocol(out, outlen, in, inlen) <= 0) {
std::cerr << "Server did not advertise HTTP/2.0 protocol."
<< " (nghttp2 expects " << NGHTTP2_PROTO_VERSION_ID << ")"
<< std::endl;
} else {
if(config.verbose) {