mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 08:34:47 +08:00
fix for closed connection.
This commit is contained in:
@@ -70,6 +70,10 @@ namespace rest_rpc {
|
||||
}
|
||||
|
||||
std::string remote_address() const {
|
||||
if (has_closed_) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return socket_.remote_endpoint().address().to_string();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user