bencaron/gosensu — pull request #16 by mbauden (2014-12-18 22:59:30+00:00)
Title: Reuse http.Client

As documented over on http://golang.org/pkg/net/http/ the http.Client should only be created once and reused, by doing this you get http keepalive support. Before this change we were seeing around 50 sockets open at all times from uchiwa to our sensu server. After the change it keeps one socket open and reuses it for all http requests.