// 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;
let pps = Cc["@mozilla.org/network/protocol-proxy-service;1"].getService();
let proxyHost;
let proxyPort;
let proxyFilter;
prefs.setBoolPref("network.http.http3.enable", true); // 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}`
);
} else {
prefs.setCharPref( "network.dns.localDomains", "foo.example.com, alt1.example.com"
);
}
// 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");
addCertFromFile(certdb, "proxy-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() {
let proxy = new NodeHTTP2ProxyServer();
await proxy.startWithoutProxyFilter(proxyPort);
registerCleanupFunction(async () => {
await proxy.stop();
}); Assert.equal(proxyPort, proxy.port());
info(`proxy port=${proxy.port()}\n`);
await do_test_version_fallback(httpsOrigin);
});
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-09-29)
¤
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.