mxsm commented on PR #4702:
URL: https://github.com/apache/eventmesh/pull/4702#issuecomment-1873347107

   
![image](https://github.com/apache/eventmesh/assets/15797831/6069aa6c-19e0-4e18-95bc-4e0440ad5549)
   The ReplayingDecoder you marked in the screenshot contains processing logic. 
After processing with ReplayingDecoder, it then calls the decode method as 
shown in the previous image. You might want to focus on the parent class of 
ReplayingDecoder, which is ByteToMessageDecoder, and take a look at the 
`channelRead` method. If you call it directly, you skip the steps of handling 
partial packets and packet concatenation. However, if your data length is just 
right, there's no issue. Problems may arise when the data length is not 
sufficient to construct a custom Package, or it can be parsed into multiple 
packages, or it is greater than one but cannot be built into an integer.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to