Method SSL.Connection()->handle_alert()
- Method
handle_alert
int(-1..1)handle_alert(intlevel,intdescription)- Description
Handle an alert received from the peer.
- Parameter
level Alert level; either
ALERT_warningorALERT_fatal.- Parameter
description Alert description code; one of
indices(SSL.Constants.ALERT_descriptions).- Returns
-1A Fatal error occurred and processing should stop.
0Processing can continue.
1Connection should close.