// Max concurent stream number in neqo is 100. // Openning 120 streams will test queuing of streams.
let number_of_parallel_requests = 120;
let h3Route;
let httpsOrigin;
let h3AltSvc;
let h3Port;
let h3ServerDomain;
let prefs;
prefs.setBoolPref("network.http.http3.enable", true);
prefs.setCharPref( "network.dns.localDomains", "foo.example.com, alt1.example.com"
); // We always resolve elements of localDomains as it's hardcoded without the // following pref:
prefs.setBoolPref("network.proxy.allow_hijacking_localhost", true);
if (mozinfo.os == "android") { // Set necessary prefs to make Firefox connect to the http3Server on the // host machine.
prefs.setCharPref("network.dns.localDomains", ""); const overrideService = Cc[ "@mozilla.org/network/native-dns-override;1"
].getService(Ci.nsINativeDNSResolverOverride);
overrideService.addIPOverride(h3ServerDomain, "10.0.2.2");
prefs.setCharPref( "network.http.http3.alt-svc-mapping-for-testing",
`${h3ServerDomain};h3=:${h3Port}`
);
}
// The certificate for the http3server server is for foo.example.com and // is signed by http2-ca.pem so add that cert to the trust list as a // signing cert.
let certdb = Cc["@mozilla.org/security/x509certdb;1"].getService(
Ci.nsIX509CertDB
);
addCertFromFile(certdb, "http2-ca.pem", "CTu,u,u");
httpsOrigin = `https://${h3ServerDomain}:${h2Port}/`;
add_task(async function test_post() {
await do_test_post(httpsOrigin, h3Route);
});
add_task(async function test_patch() {
await do_test_patch(httpsOrigin, h3Route);
});
add_task(async function test_slow_receiver() {
await do_test_slow_receiver(httpsOrigin, h3Route);
});
// This test should be at the end, because it will close http3 // connection and the transaction will switch to already existing http2 // connection. // TODO: Bug 1582667 should try to fix issue with connection being closed.
add_task(async function test_version_fallback() {
await do_test_version_fallback(httpsOrigin);
});
// This test must run after test_version_fallback: it triggers an H2/H1 // fallback which establishes an H2 connection, interfering with the h1.1 // assertion in test_version_fallback if placed before it.
add_task(async function test_unknown_reset() {
await do_test_unknown_reset(httpsOrigin);
});
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-10-04)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.