Skip to content

httpserver的长连接有bug #30

Open
@baichuan51141

Description

@baichuan51141

httpserver的handleclient函数在处理长连接时会不停循环,我在压力测试时,服务器开启后首次测试时,长连接不会出现问题,但是在不关闭服务器的情况下,第二次压力测试时,服务器仅能处理第一个长连接,它会在第一个长连接那里不停循环,我在判断长连接语句后边重新把handleclient函数放入调度器里,解决了这个问题,不知道为什么第一次压力测试时可以正常处理长连接,后边就不行了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions