LDG
LDG
i think there is no code to release body's buffer in CacheRequestBodyGatewayFilterFactory ``` return ServerWebExchangeUtils.cacheRequestBodyAndRequest(exchange, (serverHttpRequest) -> { final ServerRequest serverRequest = ServerRequest .create(exchange.mutate().request(serverHttpRequest).build(), messageReaders); return serverRequest.bodyToMono((config.getBodyClass())).doOnNext(objectValue -> { exchange.getAttributes().put(ServerWebExchangeUtils.CACHED_REQUEST_BODY_ATTR,...
The filter doesn't work well. ``` public class RemoveCachedBodyFilter implements GlobalFilter, Ordered { private static final Log log = LogFactory.getLog(RemoveCachedBodyFilter.class); @Override public Mono filter(ServerWebExchange exchange, GatewayFilterChain chain) { return chain.filter(exchange).doFinally(s...
I misunderstand at first... sorry as you say, the attribute is of type String, no need to release it. But i think the problem is here https://github.com/spring-cloud/spring-cloud-gateway/issues/2672#issuecomment-1185307421
https://github.com/WellBeing-Man/gateway-cache-leak here is reproducing code @tianshuang
sorry I have changed the code @Layfolk-zcy