smalljunHw opened a new issue, #4033:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4033

   查看修改 https://github.com/apache/servicecomb-java-chassis/pull/3927
   客户端keep-alive超时会设置比idle超时 -1, 这能确保keep-alive超时比idle超时小
   ```java
     public static int getConnectionKeepAliveTimeoutInSeconds() {
       if (result >= 0) {
         return result;
       }
       result = getConnectionIdleTimeoutInSeconds();
       if (result > 1) {
         // a bit shorter than ConnectionIdleTimeoutInSeconds
         return result - 1;
       }
       return result;
     }
   ```
   当前增加了keep-alive超时配置项,Wie
   ```java
     public static int getConnectionKeepAliveTimeoutInSeconds() {
       int result = DynamicPropertyFactory.getInstance()
       return DynamicPropertyFactory.getInstance()
           
.getIntProperty("servicecomb.rest.client.connection.keepAliveTimeoutInSeconds",
               -1)
               DEFAULT_KEEP_ALIVE_TIME_OUT)
           .get();
      }
   ```
   这样如果业务设置了ideal超时时间<60s,升级版本后将出现keepAlive超时(默认值为60s)大于idle超时的问题。
   建议控制让keep-alive超时不要超过 idle超时 - 1的情况,保持之前的约束关系。


-- 
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: commits-unsubscr...@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to