try to restart acceptors after termination of expired NTCP2 if no descriptors

This commit is contained in:
orignal 2022-12-10 15:44:37 -05:00
parent 857df5c734
commit 648b09d45f
2 changed files with 38 additions and 33 deletions

View file

@ -43,8 +43,6 @@ namespace transport
const int NTCP2_CLOCK_SKEW = 60; // in seconds
const int NTCP2_MAX_OUTGOING_QUEUE_SIZE = 500; // how many messages we can queue up
const int NTCP2_DESCRIPTORS_EXHAUST_TIMEOUT = 60; // 1 minute
enum NTCP2BlockType
{
eNTCP2BlkDateTime = 0,
@ -288,8 +286,6 @@ namespace transport
std::unique_ptr<boost::asio::ip::tcp::endpoint> m_ProxyEndpoint;
std::shared_ptr<boost::asio::ip::tcp::endpoint> m_Address4, m_Address6, m_YggdrasilAddress;
uint64_t m_NoFileExhaustTimestamp;
public:
// for HTTP/I2PControl