Set TCP_NODELAY in spdycat

This commit is contained in:
Tatsuhiro Tsujikawa 2012-02-08 01:54:44 +09:00
parent dfce262fe5
commit fd0e91b082
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ int communicate(const std::string& host, uint16_t port,
return -1; return -1;
} }
make_non_block(fd); make_non_block(fd);
set_tcp_nodelay(fd);
Spdylay sc(fd, ssl, callbacks); Spdylay sc(fd, ssl, callbacks);
nfds_t npollfds = 1; nfds_t npollfds = 1;