Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tim_beynart
Channel Surfer

HTTP Requests repeat forever, hammer server

Is there a known issue where roUrlTransfer can generate an endless flood of requests?
A few weeks ago, we had a report from a vendor that our application hammered their server with thousands of repeat requests. I figured it was a fluke, or they were somehow mistaken, but then I was testing and the same thing happened in my dev environment. I happened to have Charles proxy running and saw repeated requests going out, multiple times a second, over and over, until I exited the app. The requests failed, too, with empty responses (no headers).
Needless to say this is not cool.
0 Kudos
3 REPLIES 3
RokuMarkn
Visitor

Re: HTTP Requests repeat forever, hammer server

Perhaps it's an error in your brightscript code, where you're checking the result before the request is finished, and then reissuing the request? If you post your code someone may be able to spot the problem.

--Mark
0 Kudos
tim_beynart
Channel Surfer

Re: HTTP Requests repeat forever, hammer server

I was mistaken, it is not a problem in roUrlTransfer. It happens when I pass an HLS maifest URL to an instance of roVideoPlayer
There's a few layers of abstraction, but the implementation is nothing more than this:

m.screen.contentList[0].Stream.url = url
m.screen.Play()

If the URL fails to respond (at least I think that's what triggers this), I get a flood of OnHttpError callbacks from the video player.
0 Kudos
tim_beynart
Channel Surfer

Re: HTTP Requests repeat forever, hammer server

I started a new thread with a more accurate title:
viewtopic.php?f=34&t=94596
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.