spdycat: Log error when no supported SPDY version was negotiated
This commit is contained in:
parent
8c456674cf
commit
4d80a26188
|
@ -507,6 +507,7 @@ int communicate(const std::string& host, uint16_t port,
|
|||
reinterpret_cast<const unsigned char*>(next_proto.c_str()),
|
||||
next_proto.size());
|
||||
if (spdy_version <= 0) {
|
||||
std::cerr << "No supported SPDY version was negotiated." << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue