Re: [go-nuts] [Macos/Apple M1] HTTP client requests to ".local" domain adds 5 seconds overhead

2021-04-01 Thread Jonathan Hedrén
Thanks! I added the IPv6 loopback address to all my host names in /etc/hosts (i.e. "::1 mydomain.local") and it now works as expected. I guess Go's DNS resolver was timing out at the first attempt, that's why I consistently had that 5 second delay. torsdag 1 april 2021 kl. 07:40:10 UTC+2

Re: [go-nuts] [Macos/Apple M1] HTTP client requests to ".local" domain adds 5 seconds overhead

2021-03-31 Thread Shulhan
On Wed, 31 Mar 2021 01:47:43 -0700 (PDT) Jonathan Hedrén wrote: > I've set up a development environment on my MacBook Pro M1 (running > Big Sur 11.2.3, Go 1.16.2) with a number of small Go/.Net HTTP APIs > that are communication with each other. To replicate our production > infrastructure I've

Re: [go-nuts] [Macos/Apple M1] HTTP client requests to ".local" domain adds 5 seconds overhead

2021-03-31 Thread Wojciech S. Czarnecki
Dnia 2021-03-31, o godz. 01:47:43 Jonathan Hedrén napisał(a): > Whenever an HTTP request is sent from a Go application to any of the > ".local" APIs, 5 seconds are added to the response time. https://www.bram.us/2011/12/12/mamp-pro-slow-name-resolving-with-local-vhosts-in-lion-fix/ TL;DR do

[go-nuts] [Macos/Apple M1] HTTP client requests to ".local" domain adds 5 seconds overhead

2021-03-31 Thread Jonathan Hedrén
I've set up a development environment on my MacBook Pro M1 (running Big Sur 11.2.3, Go 1.16.2) with a number of small Go/.Net HTTP APIs that are communication with each other. To replicate our production infrastructure I've set up /etc/hosts with ".local" domains pointing to 127.0.0.1. An