Skip to content

Commit 29f287e

Browse files
committedJun 3, 2017
consumer: disable keep alives for nsqlookupd queries
1 parent 5aaaa30 commit 29f287e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎api_request.go

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func (c *deadlinedConn) Write(b []byte) (n int, err error) {
2727

2828
func newDeadlineTransport(timeout time.Duration) *http.Transport {
2929
transport := &http.Transport{
30+
DisableKeepAlives: true,
3031
Dial: func(netw, addr string) (net.Conn, error) {
3132
c, err := net.DialTimeout(netw, addr, timeout)
3233
if err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.