Skip to content

Close connection faster to save memory #11

@tmp251

Description

@tmp251

This project seems not to close connections fast enough, which could be important for this kind of servers.

In my server with modest (dozen) number of users the number of open files of trojan is high:
root@srv1667:~# lsof -s | grep trojan | wc returns 20913

The cpu usage is low but the memory usage is relatively high. I list the open files, most of ip address (each connected mobile device) have hundreds of open tcp connections (with different ports ofc). Most of them seems to be short lived tcp connections.
For a project like this it would be better to timeout connections faster to save resources, I believe most of this kind of servers had a short timeout.

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