hi, i use spring5 webflux
when post request body more then 8kb ,it was miss filed,
help me。。。
Please specify the concrete Spring Framework version
The latest is 5.0.6
Do you experience issues with that version?
i use spring boot 2.0 spring framework version 5.0.4
httpServer :
@Bean
public HttpServer httpServer() {
return HttpServer.create(builder -> {
builder.maxChunkSize(8192 * 8);
builder.maxHeaderSize(8192 * 8);
builder.initialBufferSize(256);
builder.maxInitialLineLength(8192);
builder.port(8080);
});
}
but it not work
@yu199195 we have fixes that are included in Spring Framework 5.0.6 so please try with that version.
now I use springboot 2.0.2 Spring Framework 5.0.6 but not resolved at all。
this is my code:
public abstract class AbstractGatewayWebFilter implements WebFilter {
@Override
public Mono<Void> filter(final ServerWebExchange exchange, final WebFilterChain chain) {
final ServerHttpResponse response = exchange.getResponse();
final Flux<DataBuffer> body = exchange.getRequest().getBody();
List<String> arrayList = Lists.newArrayListWithCapacity(2);
body.map(dataBuffer -> ByteBuffUtils.byteBufferToString(dataBuffer.asByteBuffer()))
.flatMap((String s) -> {
arrayList.add(s);
return Mono.empty();
}).subscribe();
}
}
i wanto get request body , if post body to long, the first request,It lost a lot of data。
the Second request,it true。。 why?
http post too long, Is it needed HttpObjectAggregator
@yu199195 can you describe a bit more the use case that you have? Do you really want the whole request body in the memory? Can't you work with the request body chunks?
Also for questions, discussions etc. it is better to use the channels below:
Reactor Netty -> https://gitter.im/reactor/reactor
Spring Boot -> https://gitter.im/spring-projects/spring-boot
Spring Framework -> https://spring.io/questions
The example method has has multiple issues, but before we even get there, it does not even compile due to "Missing return statement".
I want to in webfilter get request body。
now I met this problem:
when request body is too large,more then 1024b
the first request:
final Flux
this DataBuffer body size is 555.
The second request:
final Flux
Is there a limit to the length of the post request by netty?
help me。。
Closing in favour of the StackOverflow question (which is better suited for questions in the first place).