zephyr/subsys/net/lib/zperf
Robert Lubos 68bc981c52 net: zperf: Fix session leak
In case zperf session was aborted by the user (by for instance stopping
it from shell), or practically in case of any other
communication-related error, the zperf session could end up in a state
other than NULL or COMPLETED, with no way to recover. This made the
session no longer usable and eventually could lead to zperf being not
able to start a new session anymore.

Fix this by introducing zperf_session_reset() function, which resets the
session state back to defaults. The function is called when the zperf
receiver service is stopped.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-02 10:31:53 -06:00
..
CMakeLists.txt
Kconfig
zperf_common.c net: zperf: Convert UDP receiver to use socket services 2024-01-18 20:13:31 +01:00
zperf_internal.h net: zperf: Convert UDP receiver to use socket services 2024-01-18 20:13:31 +01:00
zperf_session.c net: zperf: Fix session leak 2024-02-02 10:31:53 -06:00
zperf_session.h net: zperf: Fix session leak 2024-02-02 10:31:53 -06:00
zperf_shell.c net: zperf: fix the calculation ratio between mbps, kbps and bps 2024-01-29 10:05:35 +01:00
zperf_tcp_receiver.c net: zperf: Fix session leak 2024-02-02 10:31:53 -06:00
zperf_tcp_uploader.c
zperf_udp_receiver.c net: zperf: Fix session leak 2024-02-02 10:31:53 -06:00
zperf_udp_uploader.c