Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shmsr committed Mar 19, 2024
1 parent 9c87e7e commit 1515711
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x-pack/filebeat/input/salesforce/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (s *salesforceInput) SetupSFClientConnection() (*soql.Resource, error) {
return nil, err
}

// set clientSession for re-use (EventLogFile)
// Set clientSession for re-use.
s.clientSession = session

// Create a new SOQL resource using the session.
Expand Down Expand Up @@ -494,6 +494,10 @@ func newClient(cfg config, log *logp.Logger) (*http.Client, error) {
Backoff: retryablehttp.DefaultBackoff,
ErrorHandler: retryErrorHandler(maxAttempts, log),
}).StandardClient()

// BUG: retryablehttp ignores the timeout previously set. So, setting it
// again.
c.Timeout = cfg.Resource.Transport.Timeout
}

return c, nil
Expand Down

0 comments on commit 1515711

Please sign in to comment.