mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/net/tftp.c: Decrease stall to 50 packets.
This commit is contained in:
1 parent
c7564b8e13
commit
bd407d6e5e
2 files changed
+6
-2
No files matched your search
@@ -224,7 +224,7 @@ tftp_receive (grub_net_udp_socket_t sock __attribute__ ((unused)),
|
||||
|
||||
grub_priority_queue_pop (data->pq);
|
||||
|
||||
if (file->device->net->packs.count < 200)
|
||||
if (file->device->net->packs.count < 50)
|
||||
err = ack (data, tftph->u.data.block);
|
||||
else
|
||||
{
|
||||
@@ -451,7 +451,7 @@ static grub_err_t
|
||||
tftp_packets_pulled (struct grub_file *file)
|
||||
{
|
||||
tftp_data_t data = file->data;
|
||||
if (file->device->net->packs.count >= 200)
|
||||
if (file->device->net->packs.count >= 50)
|
||||
return 0;
|
||||
|
||||
if (!file->device->net->eof)
|
||||
|
||||
Reference in new issue
Block a user