From 5a025b23be351560065f9f880ddea7f787bba90a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 17 Oct 2013 00:12:15 +0200 Subject: Use the default delay before a handshake is sent when the local address is invalid Sending it right away will make crossed handshakes more probable which is especially painful when roaming, so it's better to add the delay. --- src/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/send.c') diff --git a/src/send.c b/src/send.c index 2f0fb98..e429a08 100644 --- a/src/send.c +++ b/src/send.c @@ -126,7 +126,7 @@ static void send_type(fastd_context_t *ctx, const fastd_socket_t *sock, const fa pr_debug2(ctx, "sendmsg failed, trying again without pktinfo"); if (peer && !fastd_peer_handshake_scheduled(ctx, peer)) - fastd_peer_schedule_handshake(ctx, peer, 0); + fastd_peer_schedule_handshake_default(ctx, peer); msg.msg_control = NULL; msg.msg_controllen = 0; -- cgit v1.2.3