Skip to content

restful protocol transport dial cause io timeout #2302

@otis95

Description

@otis95

Environment

  • Client: Dubbo-go, v1.5.9
  • Protocol: rest
  • Registry: zookeeper

Issue description

https://github.com/apache/dubbo-go/blob/main/protocol/rest/client/client_impl/resty_client.go#L59
err = c.SetDeadline(time.Now().Add(restOption.RequestTimeout))
http连接池复用tcp连接时,因为设置了deadline,resp未返回直接抛出io timeout。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions