Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: destroy stream after requested file is returned #428

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

nchamo
Copy link
Contributor

@nchamo nchamo commented Mar 17, 2021

We've seen that the amount of file descriptors in use by the content server only increases over time.

Apparently, it has to do with this. It looks like when the client aborts the request, or doesn't disconnect properly, the original stream is never closed.

Some users mentioned that using onFinished solved the problem for them, so we tried the same solution

@nchamo nchamo self-assigned this Mar 17, 2021
Copy link
Contributor

@agusaldasoro agusaldasoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@nchamo nchamo merged commit 5c9264a into master Mar 17, 2021
@nchamo nchamo deleted the fix/destroy-stream-when-file-is-requested branch March 17, 2021 17:58
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.

2 participants