Branch: refs/heads/netload-fixes
Home:
https://github.com/kronosnet/kronosnet
Commit: decf2dfdb25f5ff01faf0e4ac67fd31fbe0674cb
https://github.com/kronosnet/kronosnet/commit/decf2dfdb25f5ff01faf0e4ac67fd…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2019-10-19 (Sat, 19 Oct 2019)
Changed paths:
M libknet/threads_rx.c
Log Message:
-----------
[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(a)redhat.com>