Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: http_file: Close upload cache on task exit (shaka-project#1348)
In some cases it can happen that the http server responds with a non-successful status code without reading the response body. In this case curl may decide not to read from the cache since there is really no point in sending data to the server. In case some other thread of shaka has already called HttpFile::Flush it may end up deadlocked there waiting for the cache to either close or become empty. Thus, we close the cache when leaving the main thread as no data will be read by curl after it has finished anyways. Closes shaka-project#1347
- Loading branch information