Don't set ToS on sockets
This commit is contained in:
@@ -45,14 +45,6 @@ template <typename T>
|
|||||||
void init_stream(T & stream)
|
void init_stream(T & stream)
|
||||||
{
|
{
|
||||||
stream.set_receive_buffer_size(1024 * 1024 * 5);
|
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
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
@@ -123,16 +123,6 @@ void wivrn_connection::init()
|
|||||||
}
|
}
|
||||||
control.send(to_headset::handshake{.stream_port = port});
|
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;
|
active = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user