cvictory commented on a change in pull request #1028:
URL: https://github.com/apache/dubbo-go/pull/1028#discussion_r567413276



##########
File path: remoting/getty/getty_client.go
##########
@@ -176,8 +176,14 @@ func (c *Client) Request(request *remoting.Request, 
timeout time.Duration, respo
        if session == nil {
                return errSessionNotExist
        }
-
-       if err = c.transfer(session, request, timeout); err != nil {
+       var (
+               totalLen int
+               sendLen  int
+       )
+       if totalLen, sendLen, err = c.transfer(session, request, timeout); err 
!= nil {
+               if sendLen != 0 && totalLen != sendLen {
+                       go c.Close()

Review comment:
       done




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

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