Rework album/tag downloads #19

Merged
Roflin merged 6 commits from tag-download into master 2020-03-11 20:04:31 +01:00
Member

The previous download implementation was hampered by PHP's output buffer, leading to a maximum tar of approximately 62MB on my local setup. The last commit in this PR explicitly disables output buffering before writing tar output.

This further changes the blocking routine to work on a per-session basis, instead of using a global lock file. In case something goes sour, still, the user can just log out and in again to try again.

Presented as an alternative to #18

The previous download implementation was hampered by PHP's output buffer, leading to a maximum tar of approximately 62MB on my local setup. The last commit in this PR explicitly disables output buffering before writing `tar` output. This further changes the blocking routine to work on a per-session basis, instead of using a global lock file. In case something goes sour, still, the user can just log out and in again to try again. Presented as an alternative to #18
Roflin reviewed 2020-03-11 12:50:26 +01:00
@ -23,3 +23,2 @@
if($album->kind !== 'Album')
throw new UnexpectedValueException('Specified tag does not correspond to an album');
if (isset($_SESSION['current_export']))
Owner

Ik zie deze check, maar ik zie niet waar deze session variable geset word? Of mis ik iets.

Ik zie deze check, maar ik zie niet waar deze session variable geset word? Of mis ik iets.
Author
Member

Oef, terecht. Ik vermoed dat ik die ben verloren in een overijverige rebase. Gaan we fixen.

Oef, terecht. Ik vermoed dat ik die ben verloren in een overijverige rebase. Gaan we fixen.
Roflin closed this pull request 2020-03-11 20:04:30 +01:00
Aaron deleted branch tag-download 2020-03-11 22:44:55 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Public/pics#19
No description provided.