Skip to content

Conversation

@DmitryDrobotov
Copy link

@DmitryDrobotov DmitryDrobotov commented Nov 7, 2023

Adds the possibility to configure the Net::HTTP::Persistent pool size. It is required if your Rails application works in multithreaded mode and amount of threads is more than the default 5.

@DmitryDrobotov
Copy link
Author

@microsoft-github-policy-service agree

def register_request_callback
@request_callback = Proc.new
def register_request_callback(&block)
@request_callback = proc &block
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes Ruby's >= 3.0: ArgumentError (tried to create Proc object without a block)

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