fpoirotte / pssht

SSH server written in PHP
https://pssht.readthedocs.io
MIT License
43 stars 9 forks source link

Do not die on errors #24

Closed fpoirotte closed 9 years ago

fpoirotte commented 9 years ago

Most errors trigger an exception (often an InvalidArgumentException or a RuntimeException). It would be nice if only the connection that triggered the exception got closed on errors instead of the whole server dying on us. This is trivial to implement (we just need to extend the try { ... } catch (...) { ... } block in CLI.php).

This depends on #20 being fixed first because otherwise the UMAC problem will be harder to diagnose (and fix).