Source file connect.ml

1
2
3
4
5
6
7
open! Hermetic

type answer = [ `Refused | `Unreachable ]

let classify = function
  | Eio.Io (Eio.Net.E (Connection_failure (Refused _)), _) -> Some `Refused
  | e -> Errno.connect e