|
|
|
@ -121,8 +121,7 @@ public class NettyWriteResponseFilter implements GlobalFilter, Ordered {
@@ -121,8 +121,7 @@ public class NettyWriteResponseFilter implements GlobalFilter, Ordered {
|
|
|
|
|
|
|
|
|
|
private void cleanup(ServerWebExchange exchange) { |
|
|
|
|
Connection connection = exchange.getAttribute(CLIENT_RESPONSE_CONN_ATTR); |
|
|
|
|
if (connection != null && connection.channel().isActive() |
|
|
|
|
&& !connection.isPersistent()) { |
|
|
|
|
if (connection != null && connection.channel().isActive() && !connection.isPersistent()) { |
|
|
|
|
connection.dispose(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|