Module Tezos_p2p.P2p_disconnection_reason

type read_write =
  1. | Read
  2. | Write
type t =
  1. | Connection_lost of read_write
  2. | Connection_closed_by_peer of read_write
  3. | Connection_closed_by_unexpected_error of read_write * string
  4. | TCP_connection_refused
  5. | TCP_connection_unreachable
  6. | TCP_network_unreachable
    (*

    Likely when try to reach an ipv6 and this is not supported.

    *)
  7. | TCP_connection_canceled
  8. | TCP_connection_failed_unexpected_error of string
  9. | Scheduled_pop_unexpected_error of Tezos_base.TzPervasives.tztrace
  10. | Scheduled_push_unexpected_error of Tezos_base.TzPervasives.tztrace
  11. | IO_scheduler_closed
  12. | IO_scheduler_shutdown
  13. | Accept_write_error of Tezos_base.TzPervasives.tztrace
  14. | Ack_read_error of Tezos_base.TzPervasives.tztrace
  15. | Authentication_rejected_no_common_protocol
  16. | Authentication_rejected of Tezos_base.TzPervasives.P2p_rejection.t
  17. | Authentication_rejected_by_peer of Tezos_base.TzPervasives.P2p_rejection.t
  18. | Authentication_rejected_error of Tezos_base.TzPervasives.tztrace
  19. | Incoming_connection_too_many
  20. | Incoming_connection_banned
  21. | Unexpected_peer_id
  22. | IP_manually_banned
  23. | Peer_id_manually_banned
  24. | Pool_destroyed
  25. | Peer_swapped
  26. | Explicit_RPC
  27. | Maintenance_too_many
  28. | User of string
  29. | Unknown_reason
val pp : Stdlib.Format.formatter -> t -> unit