summaryrefslogtreecommitdiff
path: root/src/OS
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-10-08 16:12:06 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2017-10-08 17:30:39 +0100
commit10ac8d7f410e55043b0b182fb77f2e8fb6a7aed4 (patch)
treeb61313be7211b54cc67896ed06c71716a2800649 /src/OS
parent6a69d109fb79fb19663137cf606557d663169373 (diff)
TFO: on FreeBSD avoid client TFO-mode connects unless a TCP_FASTOPEN setsocketopt succeeds
This fixes the FreeSBD no-kernel-support issues (it succeded the sendto for the connect-with-data, but dod not queue the data). Having checked dynamically, do not claim support-for TFO either.
Diffstat (limited to 'src/OS')
-rw-r--r--src/OS/os.h-FreeBSD1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/OS/os.h-FreeBSD b/src/OS/os.h-FreeBSD
index 3a06e766e..7cb836cbe 100644
--- a/src/OS/os.h-FreeBSD
+++ b/src/OS/os.h-FreeBSD
@@ -48,6 +48,7 @@ extern ssize_t os_sendfile(int, int, off_t *, size_t);
/* TCP_FASTOPEN support. There does not seems to be a
MSG_FASTOPEN defined yet... */
+#define EXIM_TFO_PROBE
#include <netinet/tcp.h> /* for TCP_FASTOPEN */
#include <sys/socket.h> /* for MSG_FASTOPEN */