HomeClusterLabs Projects

[RX] handle short write to the application properly

Description

[RX] handle short write to the application properly

this change affects only applications that are not using knet
generated socketpairs to deliver/receive data to/from knet.

If an application uses a fd that is not SOCK_SEQPACKET (basically
streaming), we have to handle short writes accordingly, and knet
will continue delivering as long as there is progress.

The application is responsible to verify that the data packet
is complete as the delivery is not guaranteed to be complete.
The application can either embed the size of the packet in their
data structure or use the socket error notification callback
that will be invoked in case of errors or 0 data delivery.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

Details

Provenance
fabbioneAuthored on Oct 19 2019, 2:47 AM
Parents
rKd3d06971d9bc: [RX] Discard incoming packets if knet cannot reply back.
Branches
Unknown
Tags
Unknown

Event Timeline