Skip to content

feat(run_finch): Allow setting conn_max_idle_time via Req interface#542

Open
Slotos wants to merge 1 commit into
wojtekmach:mainfrom
Slotos:pass-conn-max-idle-time-to-finch
Open

feat(run_finch): Allow setting conn_max_idle_time via Req interface#542
Slotos wants to merge 1 commit into
wojtekmach:mainfrom
Slotos:pass-conn-max-idle-time-to-finch

Conversation

@Slotos
Copy link
Copy Markdown

@Slotos Slotos commented May 1, 2026

Additionally, this patches a case where presence of pool_max_idle_time alone wouldn't trigger custom pool spawn, effectively ignoring the setting.

Frankly speaking, this is a quickfix. IMO a proper fix should expose adapter_options and, for Finch specifically, validate whether it's a keyword list with no content enforcement. This would eliminate the abstraction leak entirely by narrowing the scope of responsibility.

I'm proposing this quickfix as a way to apply fix for AWS Nat Gateway connection termination issue discussed in
sneako/finch#272. While :pool_max_idle_time can help, it doesn't address the issue as directly as :conn_max_idle_time does.

Additionally, this patches a case where presence of `pool_max_idle_time`
alone wouldn't trigger custom pool spawn, effectively ignoring the
setting.

Frankly speaking, this is a quickfix. IMO a proper fix should expose
`adapter_options` and, for Finch specifically, validate whether it's a
keyword list with no content enforcement. This would eliminate the
abstraction leak entirely by narrowing the scope of responsibility.

I'm proposing this quickfix as a way to apply fix for AWS Nat Gateway
connection termination issue discussed in
sneako/finch#272. While `:pool_max_idle_time`
can help, it doesn't address the issue as directly as
`:conn_max_idle_time` does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant