docker-client
docker-client copied to clipboard
[resteasy] Reading events without `until` parameter blocks indefinitely on close
BUG REPORT:
Description
Closing the event reader blocks forever
How to reproduce
try (DockerClient client = new ResteasyDockerClientBuilder().fromEnv().build()) {
try (EventStream events = client.events()) {}
}
Software:
docker version: any- docker-client version: >=4.0.0
The issue here is that when you consume events in a unbounded manner (i.e. no dates), the ChunkedInputStream will never receive the expected CRLF in order to let the client code to close the stream. Given that a no-timeout http client is constructed from the docker-client side, the close() method blocks indefinitely waiting for a CRLF before closing the stream
Root cause : https://issues.redhat.com/browse/RESTEASY-1478