yu199195 commented on code in PR #4507:
URL: https://github.com/apache/shenyu/pull/4507#discussion_r1150257367


##########
shenyu-web/src/main/java/org/apache/shenyu/web/filter/FileSizeFilter.java:
##########
@@ -86,9 +87,8 @@ public Mono<Void> filter(@NonNull final ServerWebExchange 
exchange, @NonNull fin
                                 .then(Mono.defer(() -> {
                                     ServerHttpRequest decorator = 
decorate(exchange, outputMessage);
                                     return 
chain.filter(exchange.mutate().request(decorator).build());
-
                                 }));
-                    });
+                    }).doOnDiscard(DataBuffer.class, DataBufferUtils::release);

Review Comment:
   doOnDiscard---》doOnFinal?



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

Reply via email to