liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f2ec49f9f2d2d7769d9184441c6bb42550d546e8
parent 5a224c89807ade481fd098e315b610166cc4c2a2
Author: Daniel Barlow <dan@telent.net>
Date:   Sun,  3 May 2026 13:26:09 +0100

Merge remote-tracking branch 'pcc/fix14'

Diffstat:
Mpkgs/tufted/tftp.lua | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pkgs/tufted/tftp.lua b/pkgs/tufted/tftp.lua @@ -177,9 +177,10 @@ function tftp:handle_RRQ(socket, host, port, source, options) end log(("coroutine started on %s:%s/"):format(host, port)) while not done do - if tid >= 2^16 then - socket:sendto(err("File too big."), host, port) - error("File too big.") + if tid == 2^16 then + -- Roll over the tid. The specific rollover value is unspecified, but we + -- assume that the other side is U-Boot which rolls over to 0. + tid = 0 end local okay, continue, data = pcall(source, blksize) if not okay then