This happened frequently for me with Docker Desktop's /var/run/docker.sock on macOS. But I believe it can happen on other environments, even with TCP. Alternatively, this case can be handled by the callback implementations. But it's simpler to handle the corner case here.