forked from line/armeria
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set RequestContext.isTimedOut(true) on DNS, session, write timeout (l…
…ine#5156) Related issue line#4935 ### Motivation: ``` We need to make sure CancellationScheduler.finishNow(TimeoutException) is invoked on more timeout types, such as session/connection/DNS timeout so that true is set to ctx.isTimedOut(). ``` - On line#4935, we found that `RequestContext.isTimedout` is not set true on DNS, session creation, write timeout so we need to fix it ### Modifications: - Set `RequestContext.isTimedOut(true)` on DNS, session, write timeout by `ctx.cancel(TimeoutException.class)` ### Result: - Now `RequestContext.isTimedout` is set true well on DNS, session, write timeout too - Close line#4935
- Loading branch information
Showing
5 changed files
with
147 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters