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/09 01:45:07 UTC

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

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


   看设计目标。 网络条件大部分情况都是非常好了,需要重传保证建连成功的场景越来越少, 保持较小的连接超时时间设置也是大量经验结果。 这样更适合于解决在网络确实不可达的一些情况下,快速失败的问题,这种情况反而更加频繁。 
   
   如果网络环境确实不好,可以考虑调大,但默认值1s应该是目前最合适的值的。 netty等三方件是很多年前设计的默认值,一直没修改,现实产品一般也会设置为较小的值,不具备参考意义。 


-- 
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