Opened 16 years ago
Closed 16 years ago
Last modified 16 years ago
#4648 closed patch (fixed)
Upnp does not handle requests that specify an invalid bytes range.
Reported by: | anonymous | Owned by: | dblain |
---|---|---|---|
Priority: | minor | Milestone: | 0.21 |
Component: | upnp | Version: | head |
Severity: | medium | Keywords: | upnp invalid bytes range |
Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (4)
Changed 16 years ago by
Attachment: | myth_handle_invalid_bytes_range_upnp.patch added |
---|
comment:1 Changed 16 years ago by
Milestone: | unknown → 0.21 |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch to fix upnp invalid bytes range request.