LaurenceLiZhixin opened a new pull request #75:
URL: https://github.com/apache/dubbo-getty/pull/75


   <!--  Thanks for sending a pull request! 
   -->
   
   **What this PR does**:
   Create an option to let user define if the session would collect read buffer.
   ```go
   defer func() {
                gxbytes.PutBytes(bufp)
                if s.readBufferCollectionOpen { // add this option
                        gxbytes.PutBytesBuffer(pktBuf)
                }
        }()
   ```
   Consider the case for TCP conn that sometimes pass large data. 
   If the large Buffer is collected, other TCP conn will be polluted, resulting 
in large buffers received by other TCP link, and take up a large scale of 
memeory.


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