Commit 5f22b054 authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Michael Tokarev
Browse files

Increase maximum number of session of the internal TFTP server.



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: default avatarBernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 55818ad8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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