- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Moderator
- #1
@MJGraf @FreakyJ @osre
There still seems to be issues with our used HttpServer and/or our CachedMultiSegmentHttpStream:
https://github.com/MediaPortal/Medi...ccess/CachedMultiSegmentHttpStream.cs#L37-L49
This class is used to load small chunks from the server, also in parallel (read ahead which improves linear access).
This class is configurable in different parameters:
But i.e. for linear playback, probably a larger size and a reduces number of lookaheads/caches would be better.
The small chunk size also leads to many request, which is probably the cause why the HttpServer in MP2-Server will "break" at some time and closes connections.
What do you think about this issue? Should we try to tweak the parameters or is there another idea how to stream many files more efficiently from server?
@ulischultz I would first modify this component and provide you a testbuild, so you can check if this improves situation for you.
There still seems to be issues with our used HttpServer and/or our CachedMultiSegmentHttpStream:
https://github.com/MediaPortal/Medi...ccess/CachedMultiSegmentHttpStream.cs#L37-L49
This class is used to load small chunks from the server, also in parallel (read ahead which improves linear access).
Code:
[2015-09-30 16:46:44,875] [179921 ] [114 ] [ERROR] - HttpRangeChunk: Error receiving data from http://192.168.2.21:64943/GetResource?ResourcePath=%7b03dd2da6-4da8-4d3e-9e55-80e3165729a3%7d%3a%2f%2f%2f%2fSERVERHOST%2fvideo%2fVideo-Archiv%2fThomas%2fklein%2fThomas+und+seine+Freunde+-+DVD01-E08+-+Eine+%c3%9cberraschung+f%c3%bcr+Percy.avi
System.Net.WebException: Die Anfrage wurde abgebrochen: Die Anfrage wurde abgebrochen..
bei System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
bei MediaPortal.Common.Services.ResourceAccess.CachedMultiSegmentHttpStream.HttpRangeChunk.OnResponseReceived(IAsyncResult ar)
This class is configurable in different parameters:
- The chunk size (size of each chunk, fetched in a single request), 512kb
- The number of read-ahead chunks (parallel fetched in advance), 4
- The number of caches of the already read chunks, 20 (multiplied by chunk size = 10MB)
But i.e. for linear playback, probably a larger size and a reduces number of lookaheads/caches would be better.
The small chunk size also leads to many request, which is probably the cause why the HttpServer in MP2-Server will "break" at some time and closes connections.
What do you think about this issue? Should we try to tweak the parameters or is there another idea how to stream many files more efficiently from server?
@ulischultz I would first modify this component and provide you a testbuild, so you can check if this improves situation for you.