I realized last night that my http.Fetch/Post response times were elevated with a recent update. It seems like this problem comes from the recent fix to block local HTTP requests by doing a DNS query before every request.
But this has seemed to add significant amounts of latency to every single request. Before this update, I got similar latency increases, but only if I had not used that URL during that game session or if I hadn't used it in a while (guessing due to a DNS query). Now it happens every single request.
The latency increases are significant, too; previously I was able to get ~30ms response times from my server, but now I get nearly 110ms response times. One of my friends, who lives on the other side of the continent from my server, used to get ~100ms and now gets 400ms response times. I also tried the same test on a HTTP GET echo server, which had 80ms with browser and 300ms with gmod. One of my projects requires semi-quick response times (100ms pushes it but is acceptable), and this really messes with it.
This was all done client-side, but I did tests on the server and verified it happened there too.
To replicate, run this a few times in Garry's Mod:
I realized last night that my http.Fetch/Post response times were elevated with a recent update. It seems like this problem comes from the recent fix to block local HTTP requests by doing a DNS query before every request.
But this has seemed to add significant amounts of latency to every single request. Before this update, I got similar latency increases, but only if I had not used that URL during that game session or if I hadn't used it in a while (guessing due to a DNS query). Now it happens every single request.
The latency increases are significant, too; previously I was able to get ~30ms response times from my server, but now I get nearly 110ms response times. One of my friends, who lives on the other side of the continent from my server, used to get ~100ms and now gets 400ms response times. I also tried the same test on a HTTP GET echo server, which had 80ms with browser and 300ms with gmod. One of my projects requires semi-quick response times (100ms pushes it but is acceptable), and this really messes with it.
This was all done client-side, but I did tests on the server and verified it happened there too.
To replicate, run this a few times in Garry's Mod:
and then run this a few times in a browser: