git://git.exim.org
/
users
/
jgh
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b30930a
)
TFO: disable for FreeBSD
author
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 3 Dec 2019 20:41:20 +0000
(20:41 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 3 Dec 2019 20:42:09 +0000
(20:42 +0000)
src/src/ip.c
patch
|
blob
|
history
diff --git
a/src/src/ip.c
b/src/src/ip.c
index 19be51a030d89b4cbefffc6e95fb1d1103f720a4..70e3e20644a2af2bc74336de4209157c22866c6e 100644
(file)
--- a/
src/src/ip.c
+++ b/
src/src/ip.c
@@
-245,7
+245,7
@@
callout_address = string_sprintf("[%s]:%d", address, port);
sigalrm_seen = FALSE;
if (timeout > 0) ALARM(timeout);
sigalrm_seen = FALSE;
if (timeout > 0) ALARM(timeout);
-#if
def TCP_FASTOPEN
+#if
defined(TCP_FASTOPEN) && (defined(MSG_FASTOPEN) || defined(EXIM_TFO_CONNECTX))
/* 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
/* 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
@@
-255,8
+255,8
@@
possibly use the data-on-syn, so support that too. */
if (fastopen_blob && f.tcp_fastopen_ok)
{
# ifdef MSG_FASTOPEN
if (fastopen_blob && f.tcp_fastopen_ok)
{
# ifdef MSG_FASTOPEN
- /* This is a Linux implementation.
It might be useable on FreeBSD; I have
-
not checked
. */
+ /* This is a Linux implementation.
FreeBSD does not seem to have MSG_FASTOPEN so
+
how to get TFO is unknown
. */
if ((rc = sendto(sock, fastopen_blob->data, fastopen_blob->len,
MSG_FASTOPEN | MSG_DONTWAIT, s_ptr, s_len)) >= 0)
if ((rc = sendto(sock, fastopen_blob->data, fastopen_blob->len,
MSG_FASTOPEN | MSG_DONTWAIT, s_ptr, s_len)) >= 0)