def wire.fail.late

emerging-ezhttp@0.21.0.0 · src/wirespec.bend:343

import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespec
import Base

343# a call that ran out of time, by its phase
344def wire.fail.late(p: Phase, host: String, +port: U32, +ms: U32, +n: U32)
345  -> String:
346  match p:
347    case Resolve{}:
348      wire.fail.resolve(host, n, U32.is_eq(n, 2))
349    case Connect{}:
350      "28\nconnecting to " ++ host ++ " port " ++ U32.show(port)
351        ++ " took over " ++ U32.show(ms) ++ " ms"
352    case Handshake{}:
353      "28\nthe TLS handshake with " ++ host ++ " took over " ++ U32.show(ms)
354        ++ " ms"
355    case Send{}:
356      "28\nsending the request to " ++ host ++ " took over " ++ U32.show(ms)
357        ++ " ms"
358    case Receive{}:
359      "28\n" ++ host ++ " sent nothing for " ++ U32.show(ms) ++ " ms"

Uses (7)

Used by (1)