Closed ldir-EDB0 closed 4 years ago
It would be really good if there was a way to set the DSCP (aka TOS) field on the outgoing https requests.
Looks like CURLOPT_SOCKOPTFUNCTION might offer a way of doing this. Ultimately I think it needs to do something like:
int tos = IPTOS_CLASS_CS6;
if (family == AF_INET6) setsockopt(fd, IPPROTO_IPV6, IP_TOS, &tos, sizeof(tos)); else rc = setsockopt(fd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos));
It would be really good if there was a way to set the DSCP (aka TOS) field on the outgoing https requests.
Looks like CURLOPT_SOCKOPTFUNCTION might offer a way of doing this. Ultimately I think it needs to do something like:
int tos = IPTOS_CLASS_CS6;
if (family == AF_INET6) setsockopt(fd, IPPROTO_IPV6, IP_TOS, &tos, sizeof(tos)); else rc = setsockopt(fd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos));