spdycat: Log if set_tcp_nodelay() failed
This commit is contained in:
parent
f0fc026799
commit
f6c0061117
|
@ -590,7 +590,10 @@ int communicate(const std::string& host, uint16_t port,
|
|||
<< std::endl;
|
||||
return -1;
|
||||
}
|
||||
set_tcp_nodelay(fd);
|
||||
if(set_tcp_nodelay(fd) == -1) {
|
||||
std::cerr << "Setting TCP_NODELAY failed: " << strerror(errno)
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
std::string next_proto;
|
||||
switch(config.spdy_version) {
|
||||
|
|
Loading…
Reference in New Issue