-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix not sending fault response when Endpoint TO
While reading the request if a endpoint time out happens the fault sequence response is not written to the back end. The reason for this is the thread is remaining actively in SourceHandler inputReady method while reading request when timeout happens so it would never hit responseReady method until the thread is released. So I achieved that by suspending the input when timeout happens. Also important aspect here is that this is a error scenario since we haven't read input completely hence haven't sent request data completely hence we need to avoid returning the buffers to the buffer factory as well. Fixes: wso2/api-manager#2499 imp2
- Loading branch information
1 parent
6765940
commit de06077
Showing
1 changed file
with
27 additions
and
2 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