Skip to content

Commit

Permalink
consumer: disable keep alives for nsqlookupd queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Jun 3, 2017
1 parent 5aaaa30 commit 29f287e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (c *deadlinedConn) Write(b []byte) (n int, err error) {

func newDeadlineTransport(timeout time.Duration) *http.Transport {
transport := &http.Transport{
DisableKeepAlives: true,
Dial: func(netw, addr string) (net.Conn, error) {
c, err := net.DialTimeout(netw, addr, timeout)
if err != nil {
Expand Down

0 comments on commit 29f287e

Please sign in to comment.