tylitianrui commented on pull request #271: URL: https://github.com/apache/dubbo-go-hessian2/pull/271#issuecomment-872674548
> @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. YES, There is a risk of the buffer changed by other one -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org