liubao68 commented on issue #1147: URL: https://github.com/apache/servicecomb-service-center/issues/1147#issuecomment-917790987
你配置的参数太特殊了, 刚好 client idle timeout = server idle timeout = pull interval = 60s 因为HTTP一般被用于短连接,通过连接超时实现复用。 当这3个参数相同的时候, 下一次pull, 获取连接, 可能刚好 server 关闭了连接, client未感知到, 使用这个连接发生请求, 就会出现偶然错误。 默认pull interval 是 30s, 只要请求不超时, 基本可以保证链接可以持续复用, 那么概率会降低很多。 理论上3个值分别为 50s , 60s, 30s ,保证 client < server, 那么发生的概率会更小。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
