Skip to content

Conversation

@Earlopain
Copy link

On systems with incredibly high RLIMIT_NOFILE (either intentionally or by accident) this can take quite a large amount of time.
Instead of checking them all, just stop after enough free ones have been encountered. 100k is a rather large number for that but the time needed to do this is quite low. My system does about about 7 million per second.

Closes #600

Disclaimer: I haven't properly tested this since I don't know how. I'd love some pointers on that.

On systems with incredibly high `RLIMIT_NOFILE` (either intentionally or
by accident) this can take quite a large amount of time.

Closes LibVNC#600
@Earlopain
Copy link
Author

#626

@Earlopain Earlopain closed this Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incredibly high RLIMIT_NOFILE results in minutes of initial connection delay

1 participant