projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cadbf58
)
Update "now" after connect() when making outgoing connections.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 1 Nov 2015 20:07:56 +0000
(21:07 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 10 Apr 2016 15:49:23 +0000
(17:49 +0200)
It could be that address resolution takes a long time, don't let that
count against a connection. This is especially important when using a
nameserver from the VPN.
# Conflicts:
# src/net_socket.c
src/net_socket.c
patch
|
blob
|
history
diff --git
a/src/net_socket.c
b/src/net_socket.c
index fab11d67f215a6d90c8f950f6ed982e45398f618..8983d2895aede8dc603dcb164cd3e2e1d6c96629 100644
(file)
--- a/
src/net_socket.c
+++ b/
src/net_socket.c
@@
-552,6
+552,7
@@
begin:
/* Now that there is a working socket, fill in the rest and register this connection. */
+ c->last_ping_time = time(NULL);
c->status.connecting = true;
c->name = xstrdup(outgoing->name);
#ifndef DISABLE_LEGACY