Skip to content

high-load http requests cause hanging tcp connection in close wait state #414

Open
@so-schen

Description

@so-schen

Hi,

I have http server running using ntex, and I can see high number of hanging tcp connection
there are hundreds of them..
Note that <ip> is from same ip that making the http requests, I just hide the actual ip with <ip>.

I wonder if there is issue in handling tcp connection close properly in ntex.

State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
CLOSE-WAIT 1 0 172.31.0.9:26000 <ip>:59050
CLOSE-WAIT 1 0 172.31.0.9:26000 <ip>:57932
CLOSE-WAIT 1 0 172.31.0.9:26000 <ip>:54710
CLOSE-WAIT 1 0 172.31.0.9:26000 <ip>:58766
CLOSE-WAIT 966 0 172.31.0.9:26000 <ip>:34230
.....

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