Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.3.3
-
None
-
Unknown
Description
If for some reason the workqueue fills up when using the async client. The work will be rejected and if it is still full after asyncExecuteTimeout the call to offer will also fail and the exception will be caught and ignored in AsyncHTTPConduit.setHttpResponse.
According to the comment another try will be done on the next consume but according to our findings that will not happen. The first call to setHttpResponse sets httpResponse even if the work is not successfully added to the workqueue. So when retrySetHttpResponse is called httpResponse == null will be false and setHttpResponse is not called a second time.
I have created a test case in AsyncHTTPConduit to trigger the problem and have also created a suggested fix for the problem. The patch files are attached to this issue.