tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2016
09:20 AM
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.
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.
3 REPLIES 3

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2016
10:38 AM
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
--Mark
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2016
12:20 PM
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:
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.
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.
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2016
12:41 PM
Re: HTTP Requests repeat forever, hammer server
I started a new thread with a more accurate title:
viewtopic.php?f=34&t=94596
viewtopic.php?f=34&t=94596