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

feat: replace requests with global HTTP client #2860

Merged
merged 1 commit into from
Dec 27, 2024
Merged

Conversation

mkoura
Copy link
Collaborator

@mkoura mkoura commented Dec 27, 2024

Reuse HTTP connections to avoid number of connections in TIME_WAIT status.

  • Removed direct imports of requests in test files.
  • Added http_client module to provide a global HTTP client session.
  • Updated test files to use the global HTTP client session.
  • Modified submit_api.py to use the global HTTP client session.

Reuse HTTP connections to avoid number of connections in TIME_WAIT
status.

- Removed direct imports of `requests` in test files.
- Added `http_client` module to provide a global HTTP client session.
- Updated test files to use the global HTTP client session.
- Modified `submit_api.py` to use the global HTTP client session.
@mkoura mkoura requested a review from saratomaz as a code owner December 27, 2024 16:15
@mkoura mkoura merged commit 9170abc into master Dec 27, 2024
3 checks passed
@mkoura mkoura deleted the global_http_client branch December 27, 2024 17:35
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