Skip to content

http component: Exponential strategy increases timeout duration instead of retry delay #3155

@SaurabhCodesAI

Description

@SaurabhCodesAI

I noticed that the exponential strategy in http.go is actually increasing the request timeout duration (waiting longer for a response) instead of the backoff delay (waiting longer between attempts).

Right now scheduleRetry is hardcoded to 1s every time (line 542), while the timeout math grows 10s -> 20s -> 40s.

Real exponential backoff should probably increase the wait time between retries instead.

i will drop a PR to fix this soon!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions