Don't set ToS on sockets

This commit is contained in:
Patrick Nicolas committed 2024-07-09 18:08:55 +02:00
1 parent 336f138a76
commit 41994b4e6e
2 files changed
-18

No files matched your search

-8
View File
@@ -45,14 +45,6 @@ template <typename T>
void init_stream(T & stream)
{
stream.set_receive_buffer_size(1024 * 1024 * 5);
try
{
stream.set_tos(IPTOS_DSCP_EF);
}
catch (std::exception & e)
{
spdlog::warn("Failed to set IP ToS to Expedited Forwarding: {}", e.what());
}
}
} // namespace
-10
View File
@@ -123,16 +123,6 @@ void wivrn_connection::init()
}
control.send(to_headset::handshake{.stream_port = port});
try
{
// Set Expedited forwarding https://datatracker.ietf.org/doc/html/rfc3246
if (stream)
stream.set_tos(IPTOS_DSCP_EF);
}
catch (std::exception & e)
{
U_LOG_I("Failed to set IP ToS to Expedited Forwarding: %s", e.what());
}
active = true;
}