-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
AsyncHttpClient.close()
and NettyAsyncHttpProvider.close()
(and probably other providers) should prevent multiple invocations by using CAS like this:
if (isClosed.compareAndSet(false, true) {
// release resources
}
p.s. also AsyncHttpClient.closeAsynchronously()
can just delegate to AsyncHttpClient.this.close()
from Runnable
.