Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Http looping on 416
23-11-2016, 07:47 AM (This post was last modified: 23-11-2016 08:00 AM by medoc92.)
Post: #1
Http looping on 416
Hi,

I am currently developping a gateway between a streaming service and ohPlayer.

The server does not support range requests. So it just serves the data without giving any indication that it supports ranges (no Accept-Ranges, no Content-Range headers). I see and ignore the initial range spec: 0-

After serving the data, the server gets a range request anyway (for range currentdatasize-), to which it answers with a 416 and no data.

At this point, ohPlayer loops on this same request. I have tried other response codes with the same result.

I am testing with the binary version of ohPipeline on a raspberry pi.

When looking at the git code in ProtocolHttp.cpp line 481 and Protocol.cpp ProtocolManager::Get (line 473), it does appear that the reader should heed the 416, but I did not look in the upper layers, maybe the looping occurs there.

Is the binary code up to date from the current ohPipeline git code ? And if yes, what can I do to make it accept that this request is indeed done finished EOF please desist ?

I tried to build ohpipipeline from git, with no success.

On my side, the very same http code works with every other renderer it has been thrown at at this point.

For completeness, if I kill the server process, while the player is looping on its range request, it goes on busy-looping on:

>ProtocolNetwork::Connect
ProtocolNetwork::Open
ProtocolNetwork::Close
<ProtocolNetwork::Connect error connecting
ProtocolHttp::WriteRequest Connection failure
Find all posts by this user


Messages In This Thread
Http looping on 416 - medoc92 - 23-11-2016 07:47 AM
RE: Http looping on 416 - simonc - 23-11-2016, 01:52 PM
RE: Http looping on 416 - medoc92 - 23-11-2016, 03:14 PM
RE: Http looping on 416 - simonc - 23-11-2016, 03:28 PM
RE: Http looping on 416 - simoncn - 23-11-2016, 03:47 PM
RE: Http looping on 416 - simonc - 23-11-2016, 03:52 PM
RE: Http looping on 416 - medoc92 - 23-11-2016, 04:13 PM
RE: Http looping on 416 - simonc - 23-11-2016, 03:30 PM
RE: Http looping on 416 - medoc92 - 24-11-2016, 05:31 PM
RE: Http looping on 416 - simoncn - 24-11-2016, 06:21 PM

Forum Jump: