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

Add a timeout to HTTP POST connects and reads #172

Merged
merged 5 commits into from
Apr 6, 2022
Merged

Add a timeout to HTTP POST connects and reads #172

merged 5 commits into from
Apr 6, 2022

Conversation

rb1
Copy link
Contributor

@rb1 rb1 commented Mar 15, 2022

Both timeout are hardcoded to 10 seconds. Later commits will make this
configurable.

This doesn't put a timeout around all of the HTTP POST requests
in the codebase.

Both timeout are hardcoded to 10 seconds. Later commits will make this
configurable.

This doesn't put a timeout around _all_ of the HTTP POST requests
in the codebase.
@rb1
Copy link
Contributor Author

rb1 commented Mar 15, 2022

Total noobie here... but this seemed like some low hanging fruit. It's not fully comprehensive, so I hesitate to claim it completely fixes #170, but that is a motivating factor here..

@HardNorth HardNorth self-requested a review April 5, 2022 13:47
Copy link
Member

@HardNorth HardNorth left a comment

Choose a reason for hiding this comment

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

I don't like the idea of setting timeouts on POST requests only. Either on all of the requests, either on none of them.

@rb1
Copy link
Contributor Author

rb1 commented Apr 5, 2022

I went with adding timeouts to the GETs as well as the POSTs.

@HardNorth HardNorth merged commit a3baaef into reportportal:master Apr 6, 2022
@HardNorth
Copy link
Member

@rb1 Thank you!

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.

2 participants