Commit 1ee7815d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Be more careful when computing initial request timeout.

parent 83486b29
...@@ -514,7 +514,10 @@ send_request_resend(const unsigned char *prefix, unsigned char plen, ...@@ -514,7 +514,10 @@ send_request_resend(const unsigned char *prefix, unsigned char plen,
{ {
send_request(NULL, prefix, plen, 127, seqno, router_hash); send_request(NULL, prefix, plen, 127, seqno, router_hash);
record_request(prefix, plen, seqno, router_hash, NULL, record_request(prefix, plen, seqno, router_hash, NULL,
MIN(wireless_hello_interval / 2, 2000)); MAX(10,
MIN(wireless_hello_interval / 2,
MIN(wired_hello_interval / 2,
2000))));
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment