#endif // DEBUG
}
-void Connection::finish(bool attach) {
+void Connection::finish(void) {
#ifdef DEBUG
cerr << __FILE__ << "(" << __LINE__ << ")"
- << ": finish(attach = " << attach << ")." << endl;
+ << ": finish();" << endl;
#endif // DEBUG
//socket_mutex.lock();
try {
socket->shutdown(sockbuf::shut_readwrite);
+ // FIXME socket->close(sockbuf::shut_readwrite);
+ // close(socket->sd());
} catch (const sockerr& e) {
- error(e.serrno(), e.errstr());
+ signal_error().emit(e.serrno(), e.errstr());
}
//socket_mutex.unlock();
- Runnable::finish(attach);
+ Runnable::finish();
}
const string& Connection::get_host(void) const {