shaka-packager/packager/media/file
KongQun Yang 2db1867951 Write manifests atomically
In the original manifest updating process, the file was truncated first
before was written with new contents. There is a small chance that
the web server may read back empty file or incomplete file.

The new code makes the update operation atomic (by writing to a temporary
file first then replace the old file with the temporary file).

Fixes #186

Change-Id: I2fd564cb12b922b032c0e9f70d2132a5b12ff098
2017-07-07 11:05:19 -07:00
..
file.cc Write manifests atomically 2017-07-07 11:05:19 -07:00
file.gyp Add support for udp_file in Windows. (#185) 2017-01-10 10:05:28 -08:00
file.h Write manifests atomically 2017-07-07 11:05:19 -07:00
file_closer.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
file_test_util.h Support live and event HLS playlists 2017-06-24 01:09:32 +00:00
file_unittest.cc Write manifests atomically 2017-07-07 11:05:19 -07:00
file_util.cc [WebM] Use system temp directory if temp_dir is not specified 2016-10-13 21:48:00 +00:00
file_util.h [WebM] Use system temp directory if temp_dir is not specified 2016-10-13 21:48:00 +00:00
file_util_unittest.cc [WebM] Use system temp directory if temp_dir is not specified 2016-10-13 21:48:00 +00:00
io_cache.cc Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
io_cache.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
io_cache_unittest.cc Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
local_file.cc Windows build working 2016-08-18 08:30:26 -07:00
local_file.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
memory_file.cc Add appveyor config for Windows CI 2016-08-23 12:24:34 -07:00
memory_file.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
memory_file_unittest.cc Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
threaded_io_file.cc Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
threaded_io_file.h Replace scoped_ptr with std::unique_ptr 2016-08-18 17:12:36 -07:00
udp_file.cc Add support for udp_file in Windows. (#185) 2017-01-10 10:05:28 -08:00
udp_file.h Add support for udp_file in Windows. (#185) 2017-01-10 10:05:28 -08:00
udp_options.cc Add udp options support 2016-10-31 18:40:40 +00:00
udp_options.h Add udp options support 2016-10-31 18:40:40 +00:00
udp_options_unittest.cc Add udp options support 2016-10-31 18:40:40 +00:00