[
https://issues.apache.org/jira/browse/CAMEL-13527?focusedWorklogId=242858&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-242858
]
ASF GitHub Bot logged work on CAMEL-13527:
------------------------------------------
Author: ASF GitHub Bot
Created on: 15/May/19 21:14
Start Date: 15/May/19 21:14
Worklog Time Spent: 10m
Work Description: bedlaj commented on pull request #2921: CAMEL-13527:
Implement missing optimisation for DelimiterBasedFrameDecoder
URL: https://github.com/apache/camel/pull/2921
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 242858)
Time Spent: 10m
Remaining Estimate: 0h
> Implement missing optimisation for DelimiterBasedFrameDecoder
> -------------------------------------------------------------
>
> Key: CAMEL-13527
> URL: https://issues.apache.org/jira/browse/CAMEL-13527
> Project: Camel
> Issue Type: Improvement
> Components: camel-netty4
> Affects Versions: 2.24.0, 3.0.0-M2
> Reporter: Jan Bednar
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> See pretty nice analysis on SO
> [https://stackoverflow.com/questions/56110408/memory-leak-in-camel-netty-tcp-client-when-consuming-lines-with-windows-line-bre]
> *io.netty.handler.codec.DelimiterBasedFrameDecoder* internally delegates
> decoding to *io.netty.handler.codec.LineBasedFrameDecoder*. This delegation
> is not working with Camel, because Netty internally checks for condition
> {code:java}
> this.getClass() != DelimiterBasedFrameDecoder.class //
> io.netty.handler.codec.DelimiterBasedFrameDecoder line 174 - !isSubclass()
> {code}
> We can recreate similar optimisation inside
> *org.apache.camel.component.netty4.codec.DelimiterBasedFrameDecoder* and get
> (according to SO post) significant performance improvement.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)