]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/net/tftp.c: Decrease stall to 50 packets.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 22 Jun 2012 20:04:16 +0000 (22:04 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 22 Jun 2012 20:04:16 +0000 (22:04 +0200)
ChangeLog
grub-core/net/tftp.c

index e90b6b1ecd43c304ee0734db6fcccacba16e5ae6..846b69d5f06a7fbda93370abe477ae0a8c07c15f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/net/tftp.c: Decrease stall to 50 packets.
+
 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
index 45a908c7de013a0fe819c210bb71a0e7a0ad7b57..9c70efbec867e1348560691bc20215c820548d42 100644 (file)
@@ -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)