mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 14:06:07 -04:00
epee: adaptive connection timeout system
a connection's timeout is halved for every extra connection from the same host. Also keep track of when we don't need to use a connection anymore, so we can close it and free the resource for another connection. Also use the longer timeout for non routable local addresses.
This commit is contained in:
parent
8a7b3ff138
commit
55c7fb87a9
6 changed files with 77 additions and 19 deletions
|
@ -158,6 +158,7 @@ namespace
|
|||
}
|
||||
|
||||
virtual bool close() { return true; }
|
||||
virtual bool send_done() { return true; }
|
||||
virtual bool call_run_once_service_io() { return true; }
|
||||
virtual bool request_callback() { return true; }
|
||||
virtual boost::asio::io_service& get_io_service() { return m_io_service; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue