Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Signaller HTTP-client more configurable #100

Merged
merged 2 commits into from
Oct 6, 2021
Merged

Make Signaller HTTP-client more configurable #100

merged 2 commits into from
Oct 6, 2021

Conversation

mqmr
Copy link
Contributor

@mqmr mqmr commented Sep 17, 2021

This commit introduces additional options for tweaking Signaller HTTP-client:

  • adjusting MaxConnsPerHost, MaxIdleConns, MaxIdleConnsPerHost on
    http.Transport fields if they are different from the default value of
    a corresponding command-line argument, but with the possibility to set
    them to 0, because 0 is a valid value for them;
  • setting a timeout on Signaller HTTP-requests towards upstream;

Also, this commit adds draining of a response body from Signaler's
upstream for improving connection reuse.

This commit introduces additional options for tweaking Signaller
HTTP-client:
* adjusting MaxConnsPerHost, MaxIdleConns, MaxIdleConnsPerHost on
  http.Transport fields if they are different from the default value of
  an according command-line argument, but with the possibility to set
  them to 0, because 0 is a valid value for them;
* setting a timeout on Signaller HTTP-requests towards upstream;

Also this commit adds draining of a response body from Signaler's
upstream for improving connection reuse.
@mqmr
Copy link
Contributor Author

mqmr commented Sep 17, 2021

Hi,

I still have some concerns about my implementation and would appreciate any feedback.

Thank you in advance!

@mittwald-machine
Copy link
Collaborator

There has not been any activity to this pull request in the last 14 days. It will automatically be closed after 7 more days. Remove the stale label to prevent this.

Copy link
Member

@martin-helmich martin-helmich left a comment

Choose a reason for hiding this comment

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

Sorry for the late response. Implementation looks OK to me.

@martin-helmich martin-helmich merged commit 783b501 into mittwald:master Oct 6, 2021
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.

None yet

3 participants