Skip to content

Tcp connection keepalive period time shouble be configable #1942

Description

@memory-overflow

Could tcp connection keepalive period time configable?

echo/echo.go

Line 970 in 58366f9

_ = c.(*net.TCPConn).SetKeepAlivePeriod(3 * time.Minute)

Here, the time is fixed for 3 minutes. It doesn't work where the client's keep alive time less than 3 minutes. Tcp connection is closed by the other side.

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