added performance alert for address-in-use errors
This commit is contained in:
@@ -119,7 +119,8 @@ namespace libtorrent {
|
||||
"send buffer watermark too low (upload rate will suffer)",
|
||||
"too many optimistic unchoke slots",
|
||||
"using bittyrant unchoker with no upload rate limit set",
|
||||
"the disk queue limit is too high compared to the cache size. The disk queue eats into the cache size"
|
||||
"the disk queue limit is too high compared to the cache size. The disk queue eats into the cache size",
|
||||
"too few ports allowed for outgoing connections"
|
||||
};
|
||||
|
||||
return torrent_alert::message() + ": performance warning: "
|
||||
|
@@ -3603,6 +3603,14 @@ namespace libtorrent
|
||||
torrent_handle handle;
|
||||
if (t) handle = t->get_handle();
|
||||
|
||||
if (ec == error::address_in_use
|
||||
&& m_ses.m_settings.outgoing_ports.first != 0)
|
||||
{
|
||||
if (m_ses.m_alerts.should_post<performance_alert>())
|
||||
m_ses.m_alerts.post_alert(performance_alert(
|
||||
handle, performance_alert::too_few_outgoing_ports));
|
||||
}
|
||||
|
||||
if (ec)
|
||||
{
|
||||
if ((error > 1 || ec.category() == socks_category)
|
||||
|
Reference in New Issue
Block a user