Vanillaxi commented on code in PR #3466:
URL: https://github.com/apache/dubbo-go/pull/3466#discussion_r3503219759


##########
protocol/triple/triple_protocol/duplex_http_call.go:
##########
@@ -193,9 +193,9 @@ func (d *duplexHTTPCall) CloseRead() error {
        if d.response == nil {
                return nil
        }
-       if err := discard(d.response.Body); err != nil {
-               return wrapIfRSTError(err)
-       }
+       // CloseRead is a cleanup path. Do not drain the response body here: if 
the
+       // peer stops writing or keeps the stream open, draining can block close
+       // indefinitely. Callers that need final trailers should receive until 
EOF.

Review Comment:
   好的好的,我重新改下 😮



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