Skip to content

Commit

Permalink
Set timeout to 5 minutes on the server
Browse files Browse the repository at this point in the history
  • Loading branch information
mkboudreau committed Feb 6, 2018
1 parent b0f1292 commit 5de1a89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/ldap_response/ldap_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (l *Ldap) Gather(acc telegraf.Accumulator) error {
return nil
}
defer server.Close()
server.SetTimeout(300 * time.Second)

// username/password bind
beforeBind := time.Now()
Expand Down

0 comments on commit 5de1a89

Please sign in to comment.