initial support for icmp errors in the DHT

This commit is contained in:
Arvid Norberg
2008-05-08 00:22:17 +00:00
parent 7434368652
commit bbf9c83edc
7 changed files with 53 additions and 0 deletions

View File

@@ -718,6 +718,11 @@ namespace aux {
{
if (e)
{
if (e == asio::error::connection_refused
|| e == asio::error::connection_reset
|| e == asio::error::connection_aborted)
m_dht->on_unreachable(ep);
if (m_alerts.should_post(alert::info))
{
std::string msg = "UDP socket error from '"