Skip to content

improve shouldAcceptRequest#750

Draft
timotheecour wants to merge 2 commits intodevelfrom
pr_asynchttpserver_fds_robust
Draft

improve shouldAcceptRequest#750
timotheecour wants to merge 2 commits intodevelfrom
pr_asynchttpserver_fds_robust

Conversation

@timotheecour
Copy link
Owner

@timotheecour timotheecour commented Jun 5, 2021

refs https://github.com/nim-lang/Nim/pull/16599/files#r553011143

is there a way to wait until a FD is closed to avoid a forced wait?

refs nim-lang#16603
refs nim-lang#18161
refs https://github.com/nim-lang/Nim/pull/16599/files#r552201712
refs nim-lang/RFCs#382

notes

Exploring /proc (which is what lsof does under the hood) is as good as it gets. /proc is the Linux API to get information about processes.

on windows

on osx

lsof -p $pid + filter by FD column

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.

1 participant