More useful warning on NPN negotiation failure due to draft version mismatch
This commit is contained in:
parent
cc954e077f
commit
19e187cd92
|
@ -1243,6 +1243,7 @@ int client_select_next_proto_cb(SSL* ssl,
|
||||||
}
|
}
|
||||||
if(nghttp2_select_next_protocol(out, outlen, in, inlen) <= 0) {
|
if(nghttp2_select_next_protocol(out, outlen, in, inlen) <= 0) {
|
||||||
std::cerr << "Server did not advertise HTTP/2.0 protocol."
|
std::cerr << "Server did not advertise HTTP/2.0 protocol."
|
||||||
|
<< " (nghttp2 expects " << NGHTTP2_PROTO_VERSION_ID << ")"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
} else {
|
} else {
|
||||||
if(config.verbose) {
|
if(config.verbose) {
|
||||||
|
|
Loading…
Reference in New Issue