Skip to content

Commit

Permalink
set pipeling=1 in wpts
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Nov 19, 2024
1 parent 3eacea3 commit d09fdc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/web/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2070,6 +2070,7 @@ async function httpNetworkFetch (
{
body: null,
abort: null,
blocking: true,

onConnect (abort) {
// TODO (fix): Do we need connection here?
Expand Down
3 changes: 3 additions & 0 deletions test/wpt/runner/worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d09fdc4

Please sign in to comment.