On Wed, 16 Sep 2020 08:14:11 -0700, Stephen Foster <step...@thoughtstem.com> wrote:
>Turns out it's largely a "my system thing": requests to "localhost" are >slow, but 127.0.0.1 are fast. On Chrome and curl, both were fast, which is >why I assumed the slowdown was in some Racket package. It's more likely a >DNS issue. (I have to use an unfamiliar Windows machine for game >development; there's probably something misconfigured about the DNS.) Slow "localhost" name resolution is a known issue with Windows. It's not a misconfiguration ... at least not in the conventional sense. Windows DNS client ignores the HOSTS file wrt "localhost" - the loopback is hardcoded in the client. Unfortunately the problem seems to strike randomly: many people never see it, and no one really knows why it happens or what to do about it. Flushing the DNS cache sometimes seems to help. On Win7 or Win8, you could disable the DNS client and use the HOSTS file exclusively, but Win10 doesn't allow to disable the DNS client (or even to stop it via the GUI - it can be stopped briefly using the command line service tool, but it will restart automagically after a few minutes or if the machine is rebooted). YMMV, George -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/ua25mfl91f5slf8cju64hli557917mrssg%404ax.com.