Closed
Bug 292942
Opened 19 years ago
Closed 17 years ago
Need Sentry to test servers for byte-range capability
Categories
(Webtools :: Bouncer, defect)
Webtools
Bouncer
Tracking
(Not tracked)
RESOLVED
FIXED
1.5
People
(Reporter: justdave, Assigned: wenzel)
References
Details
Attachments
(1 obsolete file)
The Firefox 1.1 application update system is intending to do incremental background downloading of updates by requesting small chunks of the file periodically, to avoid using all of the user's available bandwidth if they're on a slow connection. In order to effectively pull this off, we'll need Sentry to be checking the servers to ensure they support byte range requests via HTTP for the download channel used by the application update service.
Comment 1•19 years ago
|
||
We should probably check all of the mirrors today and see what percentage of them actually provide this functionality already. If not many mirrors provide it, it would be rather painful to get it added in. We want to leverage default configurations as much as possible. Justdave: if I give you a list of all of the mirrors, can you test them?
Reporter | ||
Comment 2•19 years ago
|
||
(In reply to comment #1) > Justdave: if I give you a list of all of the mirrors, can you test them? Sure. Anyone know how to test for such a thing? Can I pass the headers requesting it and see if I get an error? Or should I expect a non-200 response code if it works? (like 206 or something)
Comment 3•19 years ago
|
||
Perform a HEAD HTTP operation on a file on the server, and check for the "Accept-Ranges" header returned including "bytes". Not sure what the easiest way to check it actually works, though.
Updated•18 years ago
|
QA Contact: kveton → bouncer
Assignee | ||
Comment 4•17 years ago
|
||
Actually a HEAD request is not sufficient to be sure, because the Accept-Ranges header is optional (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.5). But just requesting a range of, say, 2K unconditionally and checking for a 206 response code ("Partial content") works. I have just written a little script that does that with the current mirrors.
Assignee | ||
Comment 5•17 years ago
|
||
All right: In the current active mirrors list there is only one that does not support byte ranges: "Wroclaw Centre Supercomputing sent wrong response header (405 Method Not Allowed)! URL: http://ftp.pwr.wroc.pl/pub/mozilla/firefox....." Maybe we can ask them to turn it on for us? (I do not mention other mirrors here that didn't return the correct data due to unrelated problems, mainly error 404 or 500).
Comment 6•17 years ago
|
||
Justin, mrz -- do you guys know who our mirror contact is there?
Comment 7•17 years ago
|
||
Yea, I'll ping them and ask them to change it.
Comment 8•17 years ago
|
||
He thinks this is fixed - could you re-test?
Assignee | ||
Comment 9•17 years ago
|
||
Sorry for the delay: Now the server does not answer at all anymore, quote: "Wroclaw Centre Supercomputing sent wrong response header (500 read timeout)!" Maybe they are doing maintenance or so -- I will check again in a few hours.
Assignee | ||
Comment 10•17 years ago
|
||
Justin: I just re-checked again and the Wroclaw server still answers with an error 405 (Method Not Allowed) to my request. However, this does not seem to be a Range problem anymore: Now the server runs Apache, but the error 405 is returned on *any* download request, not just Range ones: http://ftp.pwr.wroc.pl/pub/mozilla/firefox/releases/2.0.0.7/win32/en-US/Firefox%20Setup%202.0.0.7.exe
Assignee: morgamic → fwenzel
Assignee | ||
Comment 11•17 years ago
|
||
This patch teaches sentry to hash-check files. It takes a random chunk of the specified size and compares the local hash with the remote hash. You need a local tree to do that, obviously. Also, if I committed any major Perl crimes, let me know. ;)
Attachment #284335 -
Flags: review?(morgamic)
Assignee | ||
Comment 12•17 years ago
|
||
Comment on attachment 284335 [details] [diff] [review] Sentry hash checking Oops, other than this being the wrong bug for the patch, nothing went wrong. I uploaded the patch to bug 371237 again.
Attachment #284335 -
Attachment is obsolete: true
Attachment #284335 -
Flags: review?(morgamic)
Updated•17 years ago
|
Target Milestone: --- → Bouncer 1.5
Assignee | ||
Comment 13•17 years ago
|
||
The patch from bug 371237 was committed to SVN, r7784. This includes checking mirrors for byte-range capabilities and using the byte ranges to verify randomly chosen pieces of the mirrored files.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•