Method SSL.Connection()->handle_alert()


Method handle_alert

int(-1..1) handle_alert(int level, int description)

Description

Handle an alert received from the peer.

Parameter level

Alert level; either ALERT_warning or ALERT_fatal.

Parameter description

Alert description code; one of indices(SSL.Constants.ALERT_descriptions).

Returns
-1

A Fatal error occurred and processing should stop.

0

Processing can continue.

1

Connection should close.