Skip to content

Commit

Permalink
inputs.x509_cert: Fix timeout issue (#8824)
Browse files Browse the repository at this point in the history
* reproduce timeout issue #8809

* fix timeout issue #8809

* set default timeout to 5s

* closes #8809

Co-authored-by: 彭浩 <penghao@qiyi.com>
  • Loading branch information
viperstars and 彭浩 authored Feb 16, 2021
1 parent a790529 commit fe16d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/x509_cert/x509_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func init() {
inputs.Add("x509_cert", func() telegraf.Input {
return &X509Cert{
Sources: []string{},
Timeout: internal.Duration{Duration: 5},
Timeout: internal.Duration{Duration: 5 * time.Second}, // set default timeout to 5s
}
})
}

0 comments on commit fe16d56

Please sign in to comment.