Closed Bug 1411637 Opened 7 years ago Closed 7 years ago

Activity Streams pings servers every 5 minutes for highlights, even if they are 301 to a dns "server not found" error

Categories

(Firefox :: New Tab Page, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 58
Tracking Status
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: standard8, Assigned: andreio)

References

Details

I've been working on bookmarks and as a result I'm working with a few older pages.

I noticed there's a few urls that are getting pinged every 5 minutes. These are urls that are either 301s or that are server not found.

I believe from elsewhere, that activity stream won't follow 301s, but it should also stop pinging these addresses.

Likewise, if the network is known to be working (I think there's a ping for this), and the server is not found, I'm not convinced it is right to keep on attempting to ping it every 5 mins.

Example addresses:

http://tests.themasta.com/tinderboxpushlog/ (301)
http://tbpl.mozilla.org/ (host not found)
Assignee: nobody → andrei.br92
What's the request? Is it for the thumbnail? I assume it's because Screenshots throws an error and doesn't resolve a value, so the cache entry doesn't update with a thumbnail. Maybe the cache should remember when a screenshot fails too?
(In reply to Ed Lee :Mardak from comment #1)
> What's the request? Is it for the thumbnail?

It is coming from the fetchImage in HighlightsFeed.jsm

> I assume it's because
> Screenshots throws an error and doesn't resolve a value, so the cache entry
> doesn't update with a thumbnail. Maybe the cache should remember when a
> screenshot fails too?

Yes, I think that should probably be the case.
I think I was wrong about the requests going on here, I think http://tests.themasta.com/tinderboxpushlog/ was redirecting to http://tbpl.mozilla.org/. The latter is the one with the DNS error. So every 5 mins we are pinging the original, getting the 301, and then trying the redirected item that's broken.
Summary: Activity Streams pings servers every 5 minutes for highlights, even if they are 301 or server not found → Activity Streams pings servers every 5 minutes for highlights, even if they are 301 to a dns "server not found" error
Fixed in https://github.com/mozilla/activity-stream/pull/3773.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Blocks: 1413550
Blocks: 1412505
See Also: → 1424987
See Also: → 1425090
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.