Files
moby/cmd
Paweł Gronowski 28810d88d1 docker-proxy: Retry UDP write on ECONNREFUSED from stale ICMP errors
When the proxy forwards a UDP datagram to a backend that isn't listening,
the kernel queues an ICMP port-unreachable error on the connected socket.
This error is returned on the *next* Write() call, not the one that
triggered it. As a result, a subsequent write carrying new data silently
fails and the datagram is never sent to the backend.

The replyLoop already handles this for reads (goto again on ECONNREFUSED).
Apply the same treatment to writes in Run() and retry the write when the
error is ECONNREFUSED.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-04-29 20:28:50 +02:00
..