You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/01/31 11:43:26 UTC
[GitHub] [dubbo-go] cvictory commented on a change in pull request #1028: Fix: support getty send Length, when the data transfer failed
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org