> Socket can flip to TCP_LISTEN when connect() schedules out. Respect > listen() winning the race: let connect() time out, but don't reset the > socket. > > sk is CLOSE UNCONNECTED > non-blocking connect(): > sk := SYN_SENT CONNECTING > enqueue vsock_connect_timeout() > blocking connect(): > release_sock() > schedule_timeout() > vsock_connect_timeout(): > sk := CLOSE UNCONNECTED > listen(): > sk := LISTEN UNCONNECTED > lock_sock() > sk is TCP_LISTEN UNCONNECTED > > Signed-off-by: Michal Luczaj <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=7
