mirror of
https://github.com/moby/moby.git
synced 2026-06-30 19:58:03 +00:00
Concurrent bulkSyncNode calls targeting the same node overwrite each other's entry in bulkSyncAckTbl. Only the last channel gets closed by handleBulkSync; the rest block for 30s on a channel nobody will ever close. This causes unnecessary delays for DNS resolution on newly joined swarm nodes. Only have unsolicited bulk syncs subscribe to be notified when the peer replies with its own bulk sync as only unsolicited bulk syncs solicit a reply. Correlate the reply to its soliciting bulk-sync using Lamport timestamps. Co-authored-by: Dustin Kaiser <8209087+mrnicegyu11@users.noreply.github.com> Signed-off-by: Cory Snider <csnider@mirantis.com>