Commit b1cbb8d3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make the initial request timeout depend on the wireless hello interval.

parent 6997599f
...@@ -513,7 +513,8 @@ send_request_resend(const unsigned char *prefix, unsigned char plen, ...@@ -513,7 +513,8 @@ send_request_resend(const unsigned char *prefix, unsigned char plen,
unsigned short seqno, unsigned short router_hash) unsigned short seqno, unsigned short router_hash)
{ {
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, 2000); record_request(prefix, plen, seqno, router_hash, NULL,
MIN(wireless_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