mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-24 11:01:43 -08:00
Don't set ToS on sockets
This commit is contained in:
1 parent
336f138a76
commit
41994b4e6e
2 files changed
-18
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user