Skip to content

Adjust connect/reconnect timeouts #42

@Astaelan

Description

@Astaelan

I followed the path and it looks like there is the 10000ms connect timeout, after which it has a 1000ms sleep. It does this twice in a loop, and if this fails then it bails out on creating the connection, which drops way back out to where the session is managed, if the connection fails then it schedules to try the whole thing again in 5000ms.
This means that in the worst case with slow connect failure it could take 10 seconds to timeout before it waits another 1 second to try again. After waiting another 10 seconds it would wait one second, bail out, reschedule in 5 seconds, and then try again.
Collectively this is a little long and could cause missing session restore windows easier. So I think to bring it in line with what other services currently have we should turn down the connect timeout to 5000ms then remove the 2 retries with the 1000ms wait entirely. And leave the rescheduling at 5000ms. This means at most it'll take upto 10 seconds to retry if the connect isn't failing fast, and as little as 5s if it does, which is in line with other services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions