Currently, in tcp_received function defined in zperf_tcp_receiver module, the assignment of session->state to STATE_COMPLETED is overwritten on the same path to STATE_NULL and a session is considered free for both STATE_COMPLETED and STATE_NULL, so remove the assignment to STATE_NULL. Remove the break from the STATE_COMPLETED case handling so that it can fallthrough, in case the same session is used after finish. Remove also the STATE_LAST_PACKET_RECEIVED case because this state is never reached. Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| zperf_common.c | ||
| zperf_internal.h | ||
| zperf_session.c | ||
| zperf_session.h | ||
| zperf_shell.c | ||
| zperf_tcp_receiver.c | ||
| zperf_tcp_uploader.c | ||
| zperf_udp_receiver.c | ||
| zperf_udp_uploader.c | ||