wongoo commented on pull request #271:
URL: https://github.com/apache/dubbo-go-hessian2/pull/271#issuecomment-871219670


   @tylitianrui  In concurrent scenario,  an encoder encodes an object and gets 
a byte buffer, but async to process it. If u reuse the buffer, it may cause the 
data buffer being changed by other encoding process. 
   
   It may be better to create a new API, like `Encoder.ReuseBufferClean` , to 
tell user the clean will reuse the buffer.


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