set detailed error code on terminate

This commit is contained in:
Peter Thorson
2013-06-08 16:59:56 -05:00
parent 593c26f087
commit dfcd8a2967

View File

@@ -1349,6 +1349,7 @@ void connection<config>::terminate(const lib::error_code & ec) {
terminate_status tstat = unknown;
if (ec) {
m_ec = ec;
m_local_close_code = close::status::abnormal_close;
m_local_close_reason = ec.message();
}