[monero-project/monero] abstract_tcp_server2: restart async accept on error (#3997)

ahook commented on this pull request.

> @@ -1003,8 +1003,23 @@ POP_WARNINGS
}else
{
_erro(«Some problems at accept: » << e.message() << ", connections_count = " << m_sock_count); + misc_utils::sleep_no_w(100); + new_connection_.reset(new connection(io_service_, m_config, m_sock_count, m_sock_number, m_pfilter, m_connection_type));

Since we now do this reset/accept in all three of these if/else/catch blocks, would it make sense to de-dupe those and just do it at the end of the function, once?

Добавить комментарий