]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: fix wget test failure after fixing wget issue
authorYasuharu Shibata <yasuharu.shibata@gmail.com>
Wed, 14 Aug 2024 12:41:07 +0000 (21:41 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 15 Aug 2024 17:32:12 +0000 (11:32 -0600)
commitdbb6b5a01098ea2b981cc35d21edd52d33b03f50
tree2221420aac0b1f70d4d39352e5babcbfd85aed6f
parent4f64730f8d00435d6350d9085ed7d38a77e583be
sandbox: fix wget test failure after fixing wget issue

After applying the following patch, wget test on sandbox failed[1].

  Commit: cab7867cff ("net: wget: Support retransmission a dropped packet")

Here are two reasons why the test is failed and how to fix it:

1. tcp_ack is calculated by the wrong value.
   tcp_ack needs to be calculated by the received TCP payload size.
2. wget command may have a problem that HTTP response from server
   must be divided into more than two packets.
   In this commit, HTTP response is divided into two packets.

In addition, I fixed the HTTP response returned at the correct timing.

[1] https://lore.kernel.org/u-boot/CAFLszThEbk2Jr8OZ6Hj21wPSnJjgJhaDe037RqwHvwt1KjB3_A@mail.gmail.com/

Signed-off-by: Yasuharu Shibata <yasuharu.shibata@gmail.com>
Reported-by: Simon Glass <sjg@chromium.org>
test/cmd/wget.c