From 19e187cd92d11b7934045b771207ec382d579c6c Mon Sep 17 00:00:00 2001 From: David Weekly Date: Tue, 31 Dec 2013 00:12:21 +0000 Subject: [PATCH] More useful warning on NPN negotiation failure due to draft version mismatch --- src/nghttp.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nghttp.cc b/src/nghttp.cc index f6d3c35d..ecaa3608 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -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) {