On 11/24/26 21:42, Bobby Eshleman wrote: > On Tue, Nov 24, 2026 at 05:17:56PM +0100, Michal Luczaj wrote: >> On 11/24/26 00:19, Bobby Eshleman wrote: >>> On Sat, Nov 21, 2026 at 07:32:15PM +0100, Michal Luczaj wrote: > > [...] > >>> So the attempt never times out, and a late OP_RESPONSE connects a >>> socket the user already shut down, overwriting SS_DISCONNECTING with >>> SS_CONNECTED. I think that's a separate bug for a separate patch, >>> though. >> >> Great, I'm all in favour of consolidation. So in the scenario above, >> invoking vsock_connect_close() on vsock_connect_timeout() (with sk_shutdown >> check dropped) would result in CLOSE/DISCONNECTING, and no more late >> virtio_transport_recv_connecting(), right? > > Right, that late response will fall through and get an RST back. I'm > not 100% sure yet about how to rework the sk_shutdown check yet > though. I mention TCP's approach to shutdowns in my reply to Paolo and > I'm thinking thats probably the right way to go about it, but not 100% > sure yet... > > Do we agree that touching vsock_connect_timeout() should not happen in > this patch? Is there anything pending on this one from your perspective > Michal?
I think we're good. Patch fixes what started the discussion. And if I get this right, the only unintended side-effect is that shutdown/connect inconsistency, but the sibling thread concludes shutdown handling needs rework anyway. Reviewed-by: Michal Luczaj <[email protected]> thanks, Michal
