Skip to content

HTTP 协议下,空闲链接错误关闭的问题 #2418

@fibbery

Description

@fibbery

// if maxIdleCount is 1, close the connection directly
if c.maxIdleCount == 1 {
c.closeConnection()
return
}
read := c.conn.stats.ReadTotal.Count()

这里是不是应该判断该链接是否又发送请求,如果发送了请求,不应该用空闲检测来关闭 server 连接

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