Skip to content

Commit

Permalink
Fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 30, 2022
1 parent 5f683b7 commit b981009
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/run/measure/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export const startServer = async function () {
// in the runner inner logic nor doing IPC.
// - Samples might last longer if the task is slow
const KEEP_ALIVE_FACTOR = 1e2
const KEEP_ALIVE_TIMEOUT = TARGET_SAMPLE_DURATION * KEEP_ALIVE_FACTOR
const NANOSECS_TO_MILLISECS = 1e6
const KEEP_ALIVE_TIMEOUT =
(TARGET_SAMPLE_DURATION / NANOSECS_TO_MILLISECS) * KEEP_ALIVE_FACTOR

const HTTP_SERVER_OPTS = { host: 'localhost', port: 0 }

Expand Down

0 comments on commit b981009

Please sign in to comment.