funky-eyes commented on code in PR #12030:
URL: https://github.com/apache/dubbo/pull/12030#discussion_r1719206879


##########
dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/netty/RestHttpRequestDecoder.java:
##########
@@ -61,14 +62,16 @@ protected void decode(ChannelHandlerContext ctx, 
io.netty.handler.codec.http.Ful
 
             } catch (IOException e) {
                 logger.error("", e.getCause().getMessage(), "dubbo rest rest 
http request handler error", e.getMessage(), e);
+            } finally {
+                // write response
+                try {
+                    
nettyHttpResponse.addOutputHeaders(RestHeaderEnum.CONNECTION.getHeader(), 
"close");

Review Comment:
   Why is it necessary to close each connection, turning it into a short-lived 
connection?



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