spdycat: Log error when no supported SPDY version was negotiated

This commit is contained in:
Tatsuhiro Tsujikawa 2012-12-12 23:28:32 +09:00
parent 8c456674cf
commit 4d80a26188
1 changed files with 1 additions and 0 deletions

View File

@ -507,6 +507,7 @@ int communicate(const std::string& host, uint16_t port,
reinterpret_cast<const unsigned char*>(next_proto.c_str()), reinterpret_cast<const unsigned char*>(next_proto.c_str()),
next_proto.size()); next_proto.size());
if (spdy_version <= 0) { if (spdy_version <= 0) {
std::cerr << "No supported SPDY version was negotiated." << std::endl;
return -1; return -1;
} }