Commit 153d46be authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Connector SSH: made session close and error handlers take proper actions.

parent e8876030
......@@ -125,7 +125,10 @@ void session::close() {
* @param[in,out] h Handle.
*/
void session::close(handle& h) {
// XXX
(void)h;
logging::error(logging::high)
<< "socket got closed, shutting down session";
this->close();
return ;
}
......@@ -144,7 +147,10 @@ bool session::empty() const {
* @param[in,out] h Handle.
*/
void session::error(handle& h) {
// XXX
(void)h;
logging::error(logging::high)
<< "error detected on socket, shutting down session";
this->close();
return ;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment