You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consistently treat 0 as no timeout in AsyncServerResponse #37452
AsyncServerResponse.create(Object, Duration) handles a timeout of Duration.ZERO inconsistently. When the response is written asynchronously, the timeout is passed to DeferredResult and ultimately to the Servlet container, which treats a value of zero or less as "no timeout". However, block() passes it to CompletableFuture.get(long, TimeUnit), which fails immediately.
For consistency with the asynchronous code path, block() should treat a timeout of zero or less as "no timeout".
Activity
Consistently treat 0 as no timeout in AsyncServerResponse.block()