sig
  exception EAGAIN_RD
  exception EAGAIN_WR
  exception TLS_switch_request
  exception TLS_switch_response of bool
  exception TLS_error of string
  exception TLS_warning of string
end