/* Functions for doing things with sockets. With the advent of IPv6 this has
got messier, so that it's worth pulling out the code into separate functions
-that other parts of Exim can call, expecially as there are now several
+that other parts of Exim can call, especially as there are now several
different places in the code where sockets are used. */
sigalrm_seen = FALSE;
if (timeout > 0) alarm(timeout);
-#ifdef TCP_FASTOPEN
+#if defined(TCP_FASTOPEN) && defined(MSG_FASTOPEN)
/* TCP Fast Open, if the system has a cookie from a previous call to
this peer, can send data in the SYN packet. The peer can send data
before it gets our ACK of its SYN,ACK - the latter is useful for
&& errno == EOPNOTSUPP
)
{
- log_write(0, LOG_MAIN|LOG_PANIC,
- "Tried TCP Fast Open but apparently not enabled by sysctl");
+ DEBUG(D_transport)
+ debug_printf("Tried TCP Fast Open but apparently not enabled by sysctl\n");
rc = connect(sock, s_ptr, s_len);
}
}