diff --git a/enet b/enet index bdda0ee..880e41f 160000 --- a/enet +++ b/enet @@ -1 +1 @@ -Subproject commit bdda0eecc5223cd31fd5e5d5e57a3e805c0fcb74 +Subproject commit 880e41f3ab572ad6d8f064c6cc77e04f46d00956 diff --git a/src/ControlStream.c b/src/ControlStream.c index 12fca8e..51f16ad 100644 --- a/src/ControlStream.c +++ b/src/ControlStream.c @@ -1428,6 +1428,12 @@ int startControlStream(void) { client->intercept = ignoreDisconnectIntercept; + // Enable high priority QoS marking on control stream traffic + // + // NB: It is important to do this before connecting because there's logic in the connect + // retransmission code to detect QoS-intolerant routes and disable QoS marking for those. + enet_socket_set_option (client->socket, ENET_SOCKOPT_QOS, 1); + // Connect to the host peer = enet_host_connect(client, &address, CTRL_CHANNEL_COUNT, 0); if (peer == NULL) {