shaka-packager/packager/file
Peter Zebühr 53d91cd0f1
fix: Don't close upstream on HttpFile::Flush (#1201)
Closing the upstream on flush will effectively terminate the ongoing
curl connection. This means that we would need re-establish the
connection in order to resume writing, this is not what we want. In the
spirit of the documentation of File::Flush

```c++
/// Flush the file so that recently written data will survive an 
/// application crash (but not necessarily an OS crash). For 
/// instance, in LocalFile the data is flushed into the OS but not 
/// necessarily to disk.
```

We will instead wait for the curl thread to finish consuming what ever
might be in the upload cache, but leave the connection open for
subsequent writes.

Fixes #1196
2023-07-05 14:38:01 -07:00
..
public Add support for callback file 2017-09-07 19:26:26 +00:00
callback_file.cc Add support for callback file 2017-09-07 19:26:26 +00:00
callback_file.h Add support for callback file 2017-09-07 19:26:26 +00:00
callback_file_unittest.cc Add support for callback file 2017-09-07 19:26:26 +00:00
file.cc Low latency DASH support (#979) 2021-08-25 08:38:05 -07:00
file.gyp Fix Windows shared_library builds 2021-06-15 13:16:47 -07:00
file.h Fix Windows shared_library builds 2021-06-15 13:16:47 -07:00
file_closer.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
file_test_util.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
file_unittest.cc Fix possible packager hangs when reading mp4 from FIFO 2019-10-21 18:49:52 -07:00
file_util.cc Make sure TempFilePath always generate unique file path 2018-08-08 17:33:01 +00:00
file_util.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
file_util_unittest.cc Make sure TempFilePath always generate unique file path 2018-08-08 17:33:01 +00:00
http_file.cc fix: Don't close upstream on HttpFile::Flush (#1201) 2023-07-05 14:38:01 -07:00
http_file.h chore: Update URLs after moving projects (#1042) 2022-03-07 11:56:34 -08:00
http_file_unittest.cc Cleanup HttpFile and related PR. 2021-03-02 17:43:47 +00:00
io_cache.cc Add IO Cache circular buffer full warning 2018-06-29 00:19:14 +00:00
io_cache.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
io_cache_unittest.cc Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
local_file.cc Cleanup HttpFile and related PR. 2021-03-02 17:43:47 +00:00
local_file.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
memory_file.cc Make MemoryFile thread-safe 2018-08-08 17:32:46 +00:00
memory_file.h Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
memory_file_unittest.cc Make MemoryFile thread-safe 2018-08-08 17:32:46 +00:00
threaded_io_file.cc Removing dependence on base file atomicops.h 2018-07-23 22:19:29 +00:00
threaded_io_file.h Removing dependence on base file atomicops.h 2018-07-23 22:19:29 +00:00
udp_file.cc Call WSAStartup once for every new socket 2019-11-20 14:00:51 -08:00
udp_file.h Call WSAStartup once for every new socket 2019-11-20 14:00:51 -08:00
udp_options.cc Add buffer_size UDP file options 2018-06-29 00:19:30 +00:00
udp_options.h Add buffer_size UDP file options 2018-06-29 00:19:30 +00:00
udp_options_unittest.cc Add buffer_size UDP file options 2018-06-29 00:19:30 +00:00