You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/12/07 08:19:11 UTC

[GitHub] [servicecomb-java-chassis] fanjiwang1992 edited a comment on issue #2656: 客户端和服务端建立连接的timeout是否设置大于1s更可靠一些?

fanjiwang1992 edited a comment on issue #2656:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2656#issuecomment-987675225


   > 按照现在这个逻辑,应该每次握手失败,一定会触发请求直接报错。正常请求失败,一般是有重试逻辑。这里的场景确实存在,但是正常前面的重试逻辑可以覆盖到这种场景。目前这个参数是可配置的,我建议保持这个默认值。
   
   应用层的请求重试 需要保证接口的幂等性,第一次握手失败丢包触发tcp层的重试能力可能会更合理一些,我这边也看了很多应用层的连接超时设置,很多都是设置大于1秒的,有3秒的,netty默认的是30s,我们框架设计的确是可配置的,主要很多业务很少会主动去配置它


-- 
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-unsubscribe@servicecomb.apache.org

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