Re: [PATCH] tools: usb: p9_fwd: Send complete requests to the TCP server

From: Dominique Martinet

Date: Sun Nov 22 2026 - 20:00:56 EST


Zhu Jun wrote on Fri, Nov 20, 2026 at 02:19:37PM +0800:
> socket.send() can return after sending only a prefix of a request.
> The forwarder ignores that result and waits for a response to an
> incomplete message. Use sendall() so request forwarding completes
> only once all bytes have been sent or a write error is reported.
>
> Fixes: 673f0c3ffc75 ("tools: usb: p9_fwd: add usb gadget packet forwarder script")
> Signed-off-by: Zhu Jun <zhujun2@xxxxxxxxxxxxxxxxxxxx>

Thank you, picked up

--
Dominique Martinet | Asmadeus