You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTTP translation layer currently maintains its own map to track stream state. This may be more overhead that is necessary and issue #3596 is investigating improving the state to be associated with streams. After this issue is resolved we should update the HTTP translation layer to take advantage of it.
The text was updated successfully, but these errors were encountered:
Motivation:
In HttpConversionUtil's toHttpRequest and toHttpResponse methods can
allocate FullHttpMessage objects, and if an exeception is thrown during
the header conversion then this object will not be released. If a
FullHttpMessage is not fired up the pipeline, and the stream is closed
then we remove from the map, but do not release the object. This leads
to a ByteBuf leak. Some of the logic related to stream lifetime management
and FullHttpMessage also predates the RFC being finalized and is not correct.
Modifications:
- Fix leaks in HttpConversionUtil
- Ensure the objects are released when they are removed from the map.
- Correct logic and unit tests where they are found to be incorrect.
Result:
Fixesnetty#4780Fixesnetty#3619
The HTTP translation layer currently maintains its own map to track stream state. This may be more overhead that is necessary and issue #3596 is investigating improving the state to be associated with streams. After this issue is resolved we should update the HTTP translation layer to take advantage of it.
The text was updated successfully, but these errors were encountered: