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

Check CA status: add HTTP timeout #753

Closed
wants to merge 2 commits into from
Closed

Check CA status: add HTTP timeout #753

wants to merge 2 commits into from

Conversation

MartinBasti
Copy link
Contributor

@MartinBasti MartinBasti commented May 2, 2017

httplib.HTTPConnection supports timeout option so _httplib_request can
be updated to allow passing connection keyword arguments to
connection_factory.

We need connection timeout for cases when reply from server is not
received on time to ask again and not to wait for infinity.

https://pagure.io/freeipa/issue/6766
@@ -171,6 +171,9 @@
('ca_install_port', None),
('ca_agent_install_port', None),
('ca_ee_install_port', None),
# How long http connection should wait before trying again [seconds].
# Do not mistake with "startup_timeout"
('ca_status_http_timeout', 30),
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like adding this to api.env, if you really have to, can't you make this more general?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could be http_timeout?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's better.

CA sometimes "forgot to answer" so we have to add timeout for http
connection and ask again rather than wait for infinity.

https://pagure.io/freeipa/issue/6766
@stlaz stlaz added the ack Pull Request approved, can be merged label May 4, 2017
@MartinBasti
Copy link
Contributor Author

master:

  • 20f7689 http_request: add timeout option
  • 05984f1 ca_status: add HTTP timeout 30 seconds

ipa-4-5:

  • 48bb3cb http_request: add timeout option
  • 68ce9aa ca_status: add HTTP timeout 30 seconds

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label May 4, 2017
@MartinBasti MartinBasti closed this May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
2 participants