]> Git Repo - qemu.git/commitdiff
Increase maximum number of session of the internal TFTP server.
authorBernhard Übelacker <[email protected]>
Sat, 21 Jun 2014 13:26:05 +0000 (15:26 +0200)
committerMichael Tokarev <[email protected]>
Tue, 24 Jun 2014 16:01:24 +0000 (20:01 +0400)
Grub fails to boot from internal TFTP server when loading more than
3 initrd files.

Grub first opens a session to the TFTP server for every initrd file and
retrieves only the file size for all.
Then it wants to download the content using the old sessions which are
already expired.

Increasing the maximum number of session of the internal TFTP
server avoids this issue.

The error message reads as following:
error: timeout reading
`/boot/ISO.ROOT/BOOTMGR'.

Press any key to continue...

Signed-off-by: Bernhard Übelacker <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
slirp/tftp.h

index 87adeb533352e6736422ec291df3e6ceae3d9a01..e1cc24b9bf8a004ddd966a152cd9b6e312501f59 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef SLIRP_TFTP_H
 #define SLIRP_TFTP_H 1
 
-#define TFTP_SESSIONS_MAX 3
+#define TFTP_SESSIONS_MAX 20
 
 #define TFTP_SERVER    69
 
This page took 0.025439 seconds and 4 git commands to generate.