Skip to content

支持设置tcp_user_timeout #1154

Description

@psylambda

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
当server端宕机重启恢复后, client端要花较长时间才能成功连上server端。 同以下issue

#1057

原因是tcp重传的backoff机制会导致重传时间越来越长。
例如最终120秒才重传一次, 但可能server端第10秒的时候已经恢复, 导致server端恢复110秒后, client端才请求成功
Describe the solution you'd like (描述你期望的解决方法)
支持tcp_user_timeout, 提早断开连接。
目前grpc已经支持

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions