Request body loss
Describe the bug this is similar to https://github.com/spring-cloud/spring-cloud-gateway/issues/1925
if request packet and rst packet at the same time to reach, gateway sometimes only forward headers, In my opinion, gateway needs to forward a complete request or not forward.
Sample code in https://github.com/abelyliu/spring-gateway-demo
- run gateway and backend module
- run client module
- backend has exception log
here is network packets on my machine

this is the above picture dump file 1.pcapng.gz this is all request dump file 2.pcapng.gz
Environment Reactor version(s) used: 1.0.9 spring boot 2.5.3 spring cloud gateway 3.0.3 JVM version (java -version): openjdk 8 OS and version (eg. uname -a): Darwin 1s-iMac.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
@abelyliu I modify your backend service,i found backend service can review request body.
@RestController
public class Index {
@RequestMapping("/test")
public String index(@RequestBody RequestBodyDto bodyDto) {
System.out.println("hello");
System.out.println(bodyDto);
return "hello";
}
}
class RequestBodyDto {
private String name;
private Integer age;
private String secretIdentity;
// getter/setter
}
I try this code and update it on the github, it only reduces the frequency of occurrence.
Has this problem been solved at last? I have also encountered it
Is this still an issue with Spring Boot 3.2 and Cloud 2023.0? Sorry for the late reply.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.