Skip to content

Commit fe16d56

Browse files
viperstars彭浩
andauthored
inputs.x509_cert: Fix timeout issue (#8824)
* reproduce timeout issue #8809 * fix timeout issue #8809 * set default timeout to 5s * closes #8809 Co-authored-by: 彭浩 <penghao@qiyi.com>
1 parent a790529 commit fe16d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/inputs/x509_cert/x509_cert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func init() {
280280
inputs.Add("x509_cert", func() telegraf.Input {
281281
return &X509Cert{
282282
Sources: []string{},
283-
Timeout: internal.Duration{Duration: 5},
283+
Timeout: internal.Duration{Duration: 5 * time.Second}, // set default timeout to 5s
284284
}
285285
})
286286
}

0 commit comments

Comments
 (0)