session: track rx ready state as flag 86/43886/3
authorFlorin Coras <[email protected]>
Tue, 14 Oct 2025 06:19:01 +0000 (02:19 -0400)
committerFlorin Coras <[email protected]>
Tue, 14 Oct 2025 06:41:55 +0000 (02:41 -0400)
commit2748d279600dfb2d1d177455d0fa1b7d9630ee73
tree7a32d419f4bb62f27e0e12f5c5f28857b5c40535
parent874c8518bb0fd91b99f5152a129c36009634e1a3
session: track rx ready state as flag

Instead of checking session state to decide if session layer should
deliver rx notifications to app, on state transition, update rx ready
flag.

This should then avoid generating spurious rx notifications 1) after
session is disconnected by transport and 2) if session is closed prior
to accept with pending rx notification (which 1fce82e allows).

Type: improvement

Change-Id: I2ddd8ae5fe410fdfe4049d09c68cd1fd4dc79b8b
Signed-off-by: Florin Coras <[email protected]>
src/vnet/session/application_worker.c
src/vnet/session/session_input.c
src/vnet/session/session_node.c
src/vnet/session/session_types.h