mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-19 13:58:15 +00:00
[spice] turn on TCP_QUICKACK
https://assets.extrahop.com/whitepapers/TCP-Optimization-Guide-by-ExtraHop.pdf
This commit is contained in:
@@ -733,8 +733,9 @@ bool spice_connect_channel(struct SpiceChannel * channel)
|
||||
|
||||
if (spice.family != AF_UNIX)
|
||||
{
|
||||
int flag = 1;
|
||||
setsockopt(channel->socket, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(int));
|
||||
const int flag = 1;
|
||||
setsockopt(channel->socket, IPPROTO_TCP, TCP_NODELAY , &flag, sizeof(int));
|
||||
setsockopt(channel->socket, IPPROTO_TCP, TCP_QUICKACK, &flag, sizeof(int));
|
||||
}
|
||||
|
||||
if (connect(channel->socket, &spice.addr.addr, addrSize) == -1)
|
||||
|
Reference in New Issue
Block a user