Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

Add a timeout to HTTP request connection and reads#150

Closed
Mischa-Alff wants to merge 1 commit into
DataDog:masterfrom
Mischa-Alff:bugfix/add_http_timeout
Closed

Add a timeout to HTTP request connection and reads#150
Mischa-Alff wants to merge 1 commit into
DataDog:masterfrom
Mischa-Alff:bugfix/add_http_timeout

Conversation

@Mischa-Alff

Copy link
Copy Markdown

This prevents job hangs when the connection to datadog is flaky. Currently set to 3 minutes

This prevents job hangs when the connection to datadog is flaky. Currently set to 3 minutes
@azzeddinefaik

Copy link
Copy Markdown

nice work here! I really need this timeout functionality! Thanks @Mischa-Alff

@nmuesch

nmuesch commented Jun 3, 2019

Copy link
Copy Markdown
Contributor

Hey @Mischa-Alff Thanks for the contribution 🙇 Do you think this would be helpful to be made configurable?

@Mischa-Alff

Copy link
Copy Markdown
Author

Hey! What would the use case for being able to configure this be?

@nmuesch

nmuesch commented Jun 6, 2019

Copy link
Copy Markdown
Contributor

Three minutes, while reasonable, seems a little arbitrary is all 😄 Just was wondering if you had thought it was worth it being user defined with a three minute default. I don't have a strong opinion on either option.

@Mischa-Alff

Copy link
Copy Markdown
Author

I agree that it's arbitrary, I'm not sure the user cares about such an implementation detail though.

@gzussa
gzussa requested review from dabcoder and gzussa November 8, 2019 17:07
@dabcoder

Copy link
Copy Markdown

@Mischa-Alff sorry for the delay on this one. Could you merge or rebase your branch against the master one? There has been some changes and the DatadogHttpRequests.java no longer exists, so the addition you want to make should be in DatadogHttpClient.java I believe.

@gzussa gzussa mentioned this pull request Nov 28, 2019
@gzussa

gzussa commented Nov 28, 2019

Copy link
Copy Markdown
Contributor

Closing this pull request since I am porting this change in #174. Thanks @Mischa-Alff

@gzussa gzussa closed this Nov 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants