Browse Source

formatting

pull/2118/head
spencergibb 4 years ago
parent
commit
5c2bf4a4dd
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 3
      spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/NettyWriteResponseFilter.java

3
spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/NettyWriteResponseFilter.java

@ -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();
}
}

Loading…
Cancel
Save