[riot-commits] [RIOT-OS/RIOT] e469f2: lwip_sock: Make sock_tcp_read return data if avail...

Martine Lenders noreply at github.com
Mon Apr 12 12:27:48 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: e469f2dea4f473e683ba1924a32ec2ac2b046b85
      https://github.com/RIOT-OS/RIOT/commit/e469f2dea4f473e683ba1924a32ec2ac2b046b85
  Author: iosabi <iosabi at protonmail.com>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M pkg/lwip/contrib/sock/tcp/lwip_sock_tcp.c

  Log Message:
  -----------
  lwip_sock: Make sock_tcp_read return data if available

When reading from the socket with `sock_tcp_read()` it would only return
data from at most one internal connection buffer, even if the buffer
passed to `sock_tcp_read()` is larger and there is more data available
in the connection. This patch makes `sock_tcp_read` process all the
available data so long as there's more data to read available
immediately.


  Commit: 9974803f431fa20def40a78e241e4736dc00773d
      https://github.com/RIOT-OS/RIOT/commit/9974803f431fa20def40a78e241e4736dc00773d
  Author: iosabi <iosabi at protonmail.com>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M tests/lwip/tests/01-run.py

  Log Message:
  -----------
  tests/lwip: Add a test for partial TCP reads.

Add a new test to check the behavior of `sock_tcp_read` when more data
is available in the connection than the buffer passed. This test checks
issue #16124 as well as reading from multiple small network packets into
a single buffer.


  Commit: 4e3ed19802d22e86b3b91b9c3670792ef44f48b7
      https://github.com/RIOT-OS/RIOT/commit/4e3ed19802d22e86b3b91b9c3670792ef44f48b7
  Author: Martine Lenders <m.lenders at fu-berlin.de>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M pkg/lwip/contrib/sock/tcp/lwip_sock_tcp.c
    M tests/lwip/tests/01-run.py

  Log Message:
  -----------
  Merge pull request #16302 from iosabi/lwip_test

lwip_sock: Make sock_tcp_read return more data if available and test it


Compare: https://github.com/RIOT-OS/RIOT/compare/e28ec7907bbe...4e3ed19802d2


More information about the commits mailing list