[mythtv-commits] Ticket #4648: Upnp does not handle requests that specify an invalid bytes range.
MythTV
mythtv at cvs.mythtv.org
Tue Feb 12 20:05:04 UTC 2008
#4648: Upnp does not handle requests that specify an invalid bytes range.
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: dblain
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: upnp | Version: head
Severity: medium | Mlocked: 0
-----------------------+----------------------------------------------------
I am using my PS3 to watch mythtv using the media server. For TV
recordings only the PS3 requests a data range that is beyond the end of
the file when you first press play. e.g. file is 500,000,000 bytes and PS3
requests the range 750,000,000-755,000,000. I'm not sure of the cause of
this, possibly it is the fault of my ffmpeg transcoding job.
This causes an infinite loop in the sendfile64 region of
HTTPRequest::SendResponseFile consuming all cpu. The recording still
starts but you have to wait for about 30 secs and the cpu spike still
persists even then.
I have created a patch to send http response status 416 - "Requested Range
not satisfiable" in this situation. It makes the recording start straight
away and there is no cpu spike.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4648>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list