Bug 1142455 - Tweak MediaCache parameters; r=roc

This commit is contained in:
Anthony Jones 2015-08-29 13:09:33 +12:00
Родитель f0988d185f
Коммит f7a8ee4dbc
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -25,7 +25,11 @@
// For HTTP seeking, if number of bytes needing to be
// seeked forward is less than this value then a read is
// done rather than a byte range request.
static const int64_t SEEK_VS_READ_THRESHOLD = 32*1024;
//
// If we assume a 100Mbit connection, and assume reissuing an HTTP seek causes
// a delay of 200ms, then in that 200ms we could have simply read ahead 2MB. So
// setting SEEK_VS_READ_THRESHOLD to 1MB sounds reasonable.
static const int64_t SEEK_VS_READ_THRESHOLD = 1 * 1024 * 1024;
static const uint32_t HTTP_REQUESTED_RANGE_NOT_SATISFIABLE_CODE = 416;