added option to control TOS byte in peer traffic
This commit is contained in:
@@ -235,6 +235,9 @@ namespace libtorrent
|
||||
(*m_logger) << "*** INCOMING CONNECTION\n";
|
||||
#endif
|
||||
|
||||
if (m_remote.address().is_v4())
|
||||
m_socket->set_option(type_of_service(ses.settings().peer_tos), ec);
|
||||
|
||||
#ifndef NDEBUG
|
||||
piece_failed = false;
|
||||
#endif
|
||||
@@ -3011,6 +3014,12 @@ namespace libtorrent
|
||||
<< " rtt = " << m_rtt << "\n";
|
||||
#endif
|
||||
|
||||
if (m_remote.address().is_v4())
|
||||
{
|
||||
asio::error_code ec;
|
||||
m_socket->set_option(type_of_service(m_ses.settings().peer_tos), ec);
|
||||
}
|
||||
|
||||
on_connected();
|
||||
setup_send();
|
||||
setup_receive();
|
||||
|
Reference in New Issue
Block a user