30 #include <netinet/tcp.h>
69 fd_flags = fcntl (session->
socket_fd, F_GETFL);
71 || 0 != fcntl (session->
socket_fd, F_SETFL, fd_flags | O_NONBLOCK))
72 SPDYF_DEBUG(
"WARNING: Couldn't set the new connection to be non-blocking");
76 ret = setsockopt(session->
socket_fd, IPPROTO_TCP, TCP_NODELAY, &val, (socklen_t)
sizeof(val));
78 SPDYF_DEBUG(
"WARNING: Couldn't set the new connection to TCP_NODELAY");
106 #if EAGAIN != EWOULDBLOCK
135 #if EAGAIN != EWOULDBLOCK
162 #if HAVE_DECL_TCP_CORK
168 ret = setsockopt(session->
socket_fd, IPPROTO_TCP, TCP_CORK, &val, (socklen_t)
sizeof(val));
170 SPDYF_DEBUG(
"WARNING: Couldn't set the new connection to TCP_CORK");
181 #if HAVE_DECL_TCP_CORK
187 ret = setsockopt(session->
socket_fd, IPPROTO_TCP, TCP_CORK, &val, (socklen_t)
sizeof(val));
189 SPDYF_DEBUG(
"WARNING: Couldn't unset the new connection to TCP_CORK");