git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright year bumps for substantive changes 2017
[users/jgh/exim.git]
/
src
/
src
/
ip.c
diff --git
a/src/src/ip.c
b/src/src/ip.c
index 8bb6bed1f4e38d2674b515e04651628545657187..bf564662d057ac9c93419bfd939a6f4ba052f918 100644
(file)
--- a/
src/src/ip.c
+++ b/
src/src/ip.c
@@
-2,7
+2,7
@@
* Exim - an Internet mail transport agent *
*************************************************/
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 201
6
*/
+/* Copyright (c) University of Cambridge 1995 - 201
7
*/
/* See the file NOTICE for conditions of use and distribution. */
/* Functions for doing things with sockets. With the advent of IPv6 this has
/* See the file NOTICE for conditions of use and distribution. */
/* Functions for doing things with sockets. With the advent of IPv6 this has
@@
-303,6
+303,7
@@
int namelen, port;
host_item shost;
host_item *h;
int af = 0, fd, fd4 = -1, fd6 = -1;
host_item shost;
host_item *h;
int af = 0, fd, fd4 = -1, fd6 = -1;
+BOOL fastopen = tcp_fastopen_ok && type == SOCK_STREAM;
shost.next = NULL;
shost.address = NULL;
shost.next = NULL;
shost.address = NULL;
@@
-358,7
+359,7
@@
for (h = &shost; h; h = h->next)
}
for(port = portlo; port <= porthi; port++)
}
for(port = portlo; port <= porthi; port++)
- if (ip_connect(fd, af, h->address, port, timeout,
type == SOCK_STREAM
) == 0)
+ if (ip_connect(fd, af, h->address, port, timeout,
fastopen
) == 0)
{
if (fd != fd6) close(fd6);
if (fd != fd4) close(fd4);
{
if (fd != fd6) close(fd6);
if (fd != fd4) close(fd4);