diff --git a/lib/web/fetch/index.js b/lib/web/fetch/index.js index 38bcfd3dfc2..ebc0be79d65 100644 --- a/lib/web/fetch/index.js +++ b/lib/web/fetch/index.js @@ -2070,6 +2070,7 @@ async function httpNetworkFetch ( { body: null, abort: null, + blocking: true, onConnect (abort) { // TODO (fix): Do we need connection here? diff --git a/test/wpt/runner/worker.mjs b/test/wpt/runner/worker.mjs index 05ff38ae196..d83dfd4024e 100644 --- a/test/wpt/runner/worker.mjs +++ b/test/wpt/runner/worker.mjs @@ -21,10 +21,13 @@ import { // TODO(@KhafraDev): export these in index.js import { Cache } from '../../../lib/web/cache/cache.js' import { CacheStorage } from '../../../lib/web/cache/cachestorage.js' +import { Agent, setGlobalDispatcher } from '../../../index.js' import { webcrypto } from 'node:crypto' const { initScripts, meta, test, url, path } = workerData +setGlobalDispatcher(new Agent({ pipelining: 1 })) + process.on('uncaughtException', (err) => { parentPort.postMessage({ type: 'error',