SpringCloudGateway网关-上线以后遇到问题的总结

867 阅读1分钟

网关服务上线以后,稳定运行了一段时间,突然发现产线日志有The connection observed an error
reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response异常日志。后来发现我们网关服务没有配置spring.cloud.gateway.httpclient.pool.max-idle-time。相关的文章也有一些分析的比较到位。这里贴出来供大家参考。blog.csdn.net/rickiyeat/a… 。第二篇文章写的也挺好,还能复现这种错误。www.javazhiyin.com/81492.html