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? [...] > One more detail: currently a sock that went through a failed connect() can > still become a listener. A transport-bearing listener, which I don't think > is good. So, except for the connect+shutdown case, this does not change > with your patch, right? Yeah I don't think this changes here. Best, Bobby
