Skip to content

Stop Streaming on Download Termination by User #181

Answered by Fladenbro
Fladenbro asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I still can‘t find a way of identifying whether the user is still downloading during execution of the script. As the connection status returns normal at all times, the script runs until completion no matter what.

As a side note:
The main issue that made my server unresponsive is the session handling. I open / resume the session with session_start() in order to check if the user is logged in (is_access_granted). This locks the session file until the end of the script which is why other attempts of using the downloader-script are delayed. To prevent this from happening, I simply use session_write_close() directly after the login status is determined such that the file lock is lifted and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maennchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #180 on April 26, 2021 12:16.