increase network try interval gradually
* grub-core/net/arp.c (grub_net_arp_send_request): Increase network try interval gradually. * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise. * grub-core/net/net.c (grub_net_fs_read_real): Likewise. * grub-core/net/tftp.c (tftp_open): Likewise. * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
This commit is contained in:
parent
d99d2f8416
commit
6f65e36cc4
6 changed files with 19 additions and 5 deletions
|
@ -1558,8 +1558,9 @@ grub_net_fs_read_real (grub_file_t file, char *buf, grub_size_t len)
|
|||
if (!net->eof)
|
||||
{
|
||||
try++;
|
||||
grub_net_poll_cards (GRUB_NET_INTERVAL, &net->stall);
|
||||
}
|
||||
grub_net_poll_cards (GRUB_NET_INTERVAL +
|
||||
(try * GRUB_NET_INTERVAL_ADDITION), &net->stall);
|
||||
}
|
||||
else
|
||||
return total;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue