gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3a8d93f93a8d93f9gitoria client: parse only JSON answers, accept a plain-text errorKunibert3a8d93f9/plugins/fetch/tests/reset_peer.hl

537 B

  1. import { fetch } from 'hl:fetch'
  2. import { env } from 'hl:proc'
  3. \* Mission 512: a server that finishes the TLS handshake and then resets the
  4. connection used to kill the whole process with SIGPIPE (exit 141). The
  5. program must see an ordinary error instead and keep going. *\
  6. let failures = 0
  7. on Error(e) { failures = failures + 1 }
  8. let port = env('HL_TEST_PORT')
  9. let i = 0
  10. while (i < 150) {
  11. let r = fetch('https://localhost:' + port + '/x', { caFile = env('HL_TEST_CA') timeoutMs = 5000 })
  12. i = i + 1
  13. }
  14. console.log('survived 150')

Branches

Latest commits

  • 3a8d93f9gitoria client: parse only JSON answers, accept a plain-text errorKunibert
  • c9b48bfeVendor Hybriel plugins; deploy ships bin/ from zig-outKunibert
  • a41ba15fKunibert: event intake, git cache, review runner, posting, linked tickets, deploy filesKunibert