1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-21 23:28:52 -05:00

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

View File

@ -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;
}