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

break stream if connection got aborted #205

Closed
wants to merge 1 commit into from
Closed

break stream if connection got aborted #205

wants to merge 1 commit into from

Conversation

szaimen
Copy link

@szaimen szaimen commented May 2, 2023

Signed-off-by: Simon L <szaimen@e.mail.de>
@staabm
Copy link
Member

staabm commented May 2, 2023

thanks for the patch. could you come up with a test case reproducing the initial problem ?

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #205 (d3ee521) into master (16c1509) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #205   +/-   ##
=========================================
  Coverage     94.50%   94.50%           
- Complexity      256      257    +1     
=========================================
  Files            15       15           
  Lines           873      873           
=========================================
  Hits            825      825           
  Misses           48       48           
Impacted Files Coverage Δ
lib/Sapi.php 99.04% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@yevon
Copy link

yevon commented May 19, 2023

Any news about this one? Really interested in getting this fixed as this causes lots of issues on nextcloud.

@staabm
Copy link
Member

staabm commented May 19, 2023

could you come up with a test case reproducing the initial problem ?

@yevon
Copy link

yevon commented May 20, 2023

I'm just a nextcloud user that does use this lib indirectly. But in order to properly test this it should:

1 - Download a very big file multiple times simultaneously.
2 - Interrupt connections unexpectedly, like a web browser close etc.
3 - Check that process count, or disk usage is 0 soon after connection interruption. Now it continues reading the file until it is read completely causing the server to die if you continue downloading new files. It causes lots of problems on http range requests for video streamming. Not really sure if it is library specific or a wrong usage of this lib. But this makes nextcloud to hit enormous server usage on file downloads or video streamming.

@szaimen
Copy link
Author

szaimen commented May 24, 2023

Superceded by #207

@szaimen szaimen closed this May 24, 2023
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.

High disk usage on client disconnection
3 participants