-
Notifications
You must be signed in to change notification settings - Fork 516
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
feat(http): Add DELETE method support #1442
Conversation
When we try to remove an old segment from a live stream we uploaded via HTTP, we need to send DELETE requests.
I'm still in the process of verifying this change. Converting to draft. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. should we add an option to enable/disable this behavior? If DELETE was never implemented then someone might be relying on the existing behavior, and it might be good to have an option to revert to this behavior at least temporarily.
I am not sure there's a storage API out there that doesn't have both PUT and DELETE. And without DELETE, your cloud storage fills up and you have to clean it out periodically with some other process. My guess is that HTTP output support was half-implemented and never seriously used. I think this PR finishes the feature for the first time. |
I suppose |
Verified on my live stream! I'm going to leave this open for comment for another day or so, in case anyone thinks I'm being unreasonable about not putting this change behind a flag. |
I agree that |
This allows Packager to remove old segments from cloud storage automatically. See shaka-project/shaka-packager#1442
This allows Packager to remove old segments from cloud storage automatically. See shaka-project/shaka-packager#1442
It's been nearly 24 hours without comment, so I'm going to merge this. If this ruins somebody's day, we can add a flag later. I suspect it will be fine. |
🤖 I have created a release *beep* *boop* --- ## [3.3.0](v3.2.1...v3.3.0) (2024-10-25) ### Features * Add IAMF support ([#1416](#1416)) ([dc6196d](dc6196d)), closes [#1415](#1415) * EXT-X-SESSION-KEY support ([#1427](#1427)) ([d88ed27](d88ed27)), closes [#36](#36) * **http:** Add DELETE method support ([#1442](#1442)) ([ddeacb2](ddeacb2)) ### Bug Fixes * **http:** Fix "Failed sending data to the peer" errors ([#1443](#1443)) ([2c9d100](2c9d100)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
When we try to remove an old segment from a live stream we uploaded via HTTP, we need to send DELETE requests.