jshen14 commented on code in PR #2883:
URL: https://github.com/apache/thrift/pull/2883#discussion_r1398008271


##########
lib/go/thrift/simple_server.go:
##########
@@ -211,6 +211,10 @@ func (p *TSimpleServer) innerAccept() (int32, error) {
                        select {
                        case <-ctx.Done():
                                // client exited, do nothing
+                               if client != nil {
+                                       client.Close()

Review Comment:
   Yes, if the call to Close is not called, then any dynamically allocated data 
in client object is lost forever and hence the caller's golang runtime keeps 
eating memory.



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

Reply via email to