mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
Under fan-out load the single Docker socket drops connections mid-call (Broken pipe, Connection reset) and the operation fails. Split out of #2707. - Retry transient I/O at the transport: RetryingDockerHttpClient retries replay-safe control-plane calls with capped backoff (policy in DockerRetry). Interrupted I/O is not retried, except SocketTimeoutException, and the interrupt flag is kept. - Split log-follow streams onto their own @StreamingDocker client and pool (floci.docker.streaming-max-connections, default 512) so they cannot starve create/start/stop calls. Exec and wait streams stay on the main pool for now. - Adopt the container a replayed named create already made (409 matched by a per-attempt label) instead of failing and leaking it. Unnamed container creates, network creates, restart and network connect/disconnect are never replayed. - Retry tar copies at the call site with RetryingTarCopier (Lambda launcher, EC2 authorized_keys, EKS webhook kubeconfig and registries.yaml, MWAA); a local tar-writer failure is reported at once. - Send Connection: close on control-plane requests, since the Apache transport reuses pooled sockets the daemon has already closed (Podman). Hijacked requests and the streaming pool are unchanged.