Spring boot 意外取消信号和503响应代码

Spring boot 意外取消信号和503响应代码,spring-boot,spring-webflux,Spring Boot,Spring Webflux,在使用SpringWebFlux处理我的反应式REST端点时,我意识到,如果返回的Publisher没有在约30秒内完成,它将被取消,并返回一个响应代码503 我在任何地方都没有看到这种行为的记录 REST控制器示例: 包myapp.controller; 导入org.springframework.web.bind.annotation.RequestMapping; 导入org.springframework.web.bind.annotation.RequestMethod; 导入org.

在使用SpringWebFlux处理我的反应式REST端点时,我意识到,如果返回的
Publisher
没有在约30秒内完成,它将被取消,并返回一个响应代码503

我在任何地方都没有看到这种行为的记录

REST控制器示例:

包myapp.controller;
导入org.springframework.web.bind.annotation.RequestMapping;
导入org.springframework.web.bind.annotation.RequestMethod;
导入org.springframework.web.bind.annotation.RestController;
导入reactor.core.publisher.Mono;
导入javax.servlet.http.HttpServletRequest;
导入java.time.Duration;
@RestController
公共类测试IndexingRestController{
@请求映射(
value=“/test”,
method=RequestMethod.GET
)
公共单声道测试(HttpServletRequest){
返回单次延迟(持续时间为分钟(2)),然后返回(“延迟”);
}
}
响应:503,无响应内容

我的问题是:如何禁用此行为,或者至少增加超时

注意:我已尝试使用应用程序属性
server.connection-timeout:-1
server.connection-timeout:15
,但未成功-请求在30秒多一点后仍然超时


我正在使用Spring引导依赖项(版本
2.1.6-RELEASE
):


org.springframework.boot
弹簧靴起动器
org.springframework.boot
弹簧靴起动器执行器
org.springframework.boot
弹簧起动器
org.springframework.boot
弹簧启动器webflux
org.springframework.boot
spring启动程序json
org.springframework.boot
弹簧起动试验
测试


离子交换反应器
堆芯
3.2.12.发布

interest(+1)您可以展示pom吗。您使用的是哪个版本的springboot/webflux。你也在使用tomcat还是netty?@pvpkiran我在我的问题中添加了一些依赖信息。很遗憾,我无法发布完整的pom。我使用的是2.1.8.RELEASE,无法复制此问题。您解决了吗?我有同样的issue@CptDayDreamer不幸的是,我没有。如果你找到了解决办法,请毫不犹豫地告诉我。