Aha, sounds like the problem I was hitting, described in detail here: https://groups.google.com/d/topic/golang-nuts/UXOVPX4a6uA/discussion
I didn't get any responses though so I was thinking it was a peculiarity of my setup and didn't bother to file a bug. If you run your server with GODEBUG=netdns=go+2 or GODEBUG=netdns=cgo+2 does the problem go away? Does the example program in the above linked post have the same problem? Are you running in a container? What is your environment? What libc and userspace (Debian, Ubuntu, Alpine) are you using? On 16 November 2016 at 05:01, Tom <hyper...@gmail.com> wrote: > Hi guys, > > I've been working on a HTTP reverse proxy that has an auth/authorization > function. It all works well, however I have noticed significant additional > latency - and I cannot work out why. From what I can tell, me hitting my > service from chrome on localhost should work just fine - I have a very > beefy machine! (8core 3.4Ghz Amd64) > > Anyone have any insights into httputil.ReverseProxy, or have any ideas > where to begin? > > The method is here: https://github.com/twitchyliquid64/pushtart/blob/ > master/src/pushtart/webproxy/handler.go#L61 > > Cheers, > Tom > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.