Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

eventTstSSHSocketServer.OnError

property OnError: tSSHServerErrorEvent read fOnError write fOnError;
Fired when the listening daemon dies on an unexpected exception - for instance when waiting on the listening socket fails (activation-time bind failures raise from Active := True instead and never reach this event). An accept that takes nothing is not such a failure: the daemon waits again, with the listening socket open. The server no longer accepts new connections once it fires; existing sessions are unaffected. Fires in the daemon thread's context (synchronize in GUI handlers), and not during deactivation. A typical handler logs the error and schedules Active := False (to release the dead daemon) followed by a re-activation attempt.