Fix httpasyncclient-4.x-plugin's memory leak risk (#85)
This commit is contained in:
parent
ff5de395a0
commit
61e0e6de7b
|
|
@ -37,6 +37,7 @@ public class LeaseRequestCompletedInterceptor implements InstanceMethodsAroundIn
|
||||||
conn.getContext().setAttribute(Constants.SKYWALKING_CONTEXT_SNAPSHOT, ContextManager.capture());
|
conn.getContext().setAttribute(Constants.SKYWALKING_CONTEXT_SNAPSHOT, ContextManager.capture());
|
||||||
conn.getContext().setAttribute(Constants.SKYWALKING_HTTP_CONTEXT, Constants.HTTP_CONTEXT_LOCAL.get());
|
conn.getContext().setAttribute(Constants.SKYWALKING_HTTP_CONTEXT, Constants.HTTP_CONTEXT_LOCAL.get());
|
||||||
}
|
}
|
||||||
|
Constants.HTTP_CONTEXT_LOCAL.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ Release Notes.
|
||||||
* Add plugin to support okhttp 2.x
|
* Add plugin to support okhttp 2.x
|
||||||
* Optimize okhttp 3.x 4.x plugin to get span time cost precisely
|
* Optimize okhttp 3.x 4.x plugin to get span time cost precisely
|
||||||
* Adapt message header properties of RocketMQ 4.9.x
|
* Adapt message header properties of RocketMQ 4.9.x
|
||||||
|
* Fix httpasyncclient-4.x-plugin's memory leak risk
|
||||||
|
|
||||||
#### Documentation
|
#### Documentation
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue