kunibert
All repositories: gitoria
537 B
import { fetch } from 'hl:fetch'import { env } from 'hl:proc'\* Mission 512: a server that finishes the TLS handshake and then resets theconnection used to kill the whole process with SIGPIPE (exit 141). Theprogram must see an ordinary error instead and keep going. *\let failures = 0on Error(e) { failures = failures + 1 }let port = env('HL_TEST_PORT')let i = 0while (i < 150) {let r = fetch('https://localhost:' + port + '/x', { caFile = env('HL_TEST_CA') timeoutMs = 5000 })i = i + 1}console.log('survived 150')