Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If exception throwed by completed method in FutureCallback argument in HttpAsyncClient.execute,the connection will be closed.
but the exception throwed by customer code,should not affect the connection managed by the framework,the connection should be connected also.
there can be a class called FutureCallbackIgnorecompelteExcepton class.
public abstract class FutureCallbackIgnorecompelteExcepton <T> {
private FutureCallback<T> t;
void completed(T result){
try
catch(Exception e)
//ignore
}
void failed(Exception ex);
void cancelled();
}
HttpAsyncClient changed as:
HttpAsyncClient.<T> Future<T> execute(
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HttpContext context,
FutureCallbackIgnorecompelteExcepton <T> callback);
Attachments
Issue Links
- links to