Skip to content

fix: add configurable keep-alive and Faraday adapter options#56

Merged
itsmeadi merged 2 commits into
masterfrom
feature/http-keepalive-connection-reuse
May 11, 2026
Merged

fix: add configurable keep-alive and Faraday adapter options#56
itsmeadi merged 2 commits into
masterfrom
feature/http-keepalive-connection-reuse

Conversation

@itsmeadi
Copy link
Copy Markdown
Collaborator

Summary

  • add optional HTTP connection settings to Configuration and GetStreamRuby.manual (connection_keep_alive, faraday_adapter, faraday_adapter_options)
  • keep default transport behavior unchanged by continuing to use Faraday.default_adapter unless an adapter is explicitly provided
  • apply keep-alive header in Client#build_connection, add adapter fallback logging, and document new options in README

Test plan

  • bundle exec rspec spec/getstream_ruby_spec.rb
  • Validate behavior with a custom Faraday adapter in an application integration environment

Made with Cursor

Expose optional HTTP connection settings so SDK users can tune latency behavior without changing default adapter semantics. This keeps existing behavior intact while enabling adapter-level connection reuse configuration.

Co-authored-by: Cursor <cursoragent@cursor.com>
Refactor manual/client/configuration signatures to accept option hashes so Metrics/ParameterLists passes while preserving existing keyword compatibility for HTTP connection settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
@itsmeadi itsmeadi merged commit 1e557fa into master May 11, 2026
7 of 8 checks passed
@itsmeadi itsmeadi deleted the feature/http-keepalive-connection-reuse branch May 11, 2026 11:19
github-actions Bot added a commit that referenced this pull request May 11, 2026
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