From bd407d6e5e1e7b6d15e03c4dfd734817883ad0d9 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 22 Jun 2012 22:04:16 +0200 Subject: [PATCH] * grub-core/net/tftp.c: Decrease stall to 50 packets. --- ChangeLog | 4 ++++ grub-core/net/tftp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e90b6b1ec..846b69d5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-06-22 Vladimir Serbinenko + + * grub-core/net/tftp.c: Decrease stall to 50 packets. + 2012-06-22 Vladimir Serbinenko * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open. diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c index 45a908c7d..9c70efbec 100644 --- a/grub-core/net/tftp.c +++ b/grub-core/net/tftp.c @@ -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)