Commit 4d80a261 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

spdycat: Log error when no supported SPDY version was negotiated

parent 8c456674
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment