mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 05:45:03 -04:00
abstract_tcp_server2: fix timeout on exit
When closing connections due to exiting, the IO service is already gone, so the data exchange needed for a gracious SSL shutdown cannot happen. We just close the socket in that case.
This commit is contained in:
parent
9c77dbf376
commit
c3cf930f75
2 changed files with 9 additions and 2 deletions
|
@ -93,11 +93,12 @@ namespace net_utils
|
|||
struct shared_state : connection_basic_shared_state
|
||||
{
|
||||
shared_state()
|
||||
: connection_basic_shared_state(), pfilter(nullptr), config()
|
||||
: connection_basic_shared_state(), pfilter(nullptr), config(), stop_signal_sent(false)
|
||||
{}
|
||||
|
||||
i_connection_filter* pfilter;
|
||||
typename t_protocol_handler::config_type config;
|
||||
bool stop_signal_sent;
|
||||
};
|
||||
|
||||
/// Construct a connection with the given io_service.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue