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

From: Michael Grzeschik

Date: Mon Nov 23 2026 - 10:16:36 EST


On Mon, Nov 23, 2026 at 09:59:59AM +0900, Dominique Martinet wrote:
> 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

gregkh already picked it to usb-next

> --
> Dominique Martinet | Asmadeus