Skip to content

feat: replace requests with global HTTP client#2860

Merged
mkoura merged 1 commit intomasterfrom
global_http_client
Dec 27, 2024
Merged

feat: replace requests with global HTTP client#2860
mkoura merged 1 commit intomasterfrom
global_http_client

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