Files
Nayana BidariandgVisor bot 1e800c5a61 Fix deadlock when restoring terminated TCP endpoints.
Fix a deadlock during container restore when snapshots contain connected TCP
endpoints along with listening sockets.

Previously, `closeEndpointAtRestore()` synchronously waited on `listenLoading`
and  `connectedLoading`, which blocked the sequential restore loop and created
a circular wait with the listening socket initialization.

A terminating socket does not bind ports or send network traffic, it
has no dependency on whether other connected or listening sockets have
finished initializing. This change removes the blocking waits from
`closeEndpointAtRestore()` and adds regression tests in
`TestRestoreListenWithPreexistingConnection`.

PiperOrigin-RevId: 971362919
2026-08-26 10:32:15 -07:00
..
…