Skip to content

Changes

Summary

  1. Change JettyConnector 'readTimeout' behavior to match socket read tim… (#5114) (commit: 77074f1) (details)
Commit 77074f19f8cc6acc555690b5069f2519fb9693e4 by noreply
Change JettyConnector 'readTimeout' behavior to match socket read tim… (#5114)

* Change JettyConnector 'readTimeout' behavior to match socket read timeout definition - e.g., ApacheConnector behavior matches it.

* Read timeout: Time on waiting to receive the first data byte.

The `timeout` method timeouts the request even if data were already received, capping the query to a maximum execution time.
This behavior is problematic when streaming data over a prolonged duration; the client has already received data bytes, but data continues to flow.

I provided a jetty specific property (jersey.config.jetty.client.totalTimeout) that configures the 'totalTimeout' when required.
(commit: 77074f1)
The file was modified connectors/jetty-connector/src/test/java/org/glassfish/jersey/jetty/connector/TimeoutTest.java (diff)
The file was modified connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java (diff)
The file was modified connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java (diff)