Skip to content

Reduce the total number of file descriptors #282

@jkroonza

Description

@jkroonza

Currently it seems each connection maintains two open file descriptors. I do not recall precisely what these are for.

From memory I believe one is in order to send packets from a specific source address (ie, bound to the address we received the original packet from the remote side). I believe it should be possible to reduce the total number of file descriptors in use, at a minimum by coalescing the sockets used for sending outbound frames based on the local address, effectively re-using them in such a manner that we can reduce the overall number of open file descriptors.

Based on what I've seen so far of the code this will be a non-trivial endeavour.

The other file descriptor if I recall relates to the pseudo tty for each ppp, I do not believe it's possible to reduce these, but again, would need to confirm.

Just logging this before I forget about it.

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