Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions aiperf/clients/http/defaults.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import socket
from dataclasses import dataclass

Expand Down Expand Up @@ -63,8 +64,8 @@ def apply_to_socket(cls, sock: socket.socket) -> None:
class AioHttpDefaults:
"""Default values for aiohttp.ClientSession."""

LIMIT = 2500 # Maximum number of concurrent connections
LIMIT_PER_HOST = 2500 # Maximum number of concurrent connections per host
LIMIT = int(os.environ.get("AIPERF_HTTP_CONNECTION_LIMIT", 2500)) # Maximum number of concurrent connections
LIMIT_PER_HOST = 0 # Maximum number of concurrent connections per host
TTL_DNS_CACHE = 300 # Time to live for DNS cache
USE_DNS_CACHE = True # Enable DNS cache
ENABLE_CLEANUP_CLOSED = False # Disable cleanup of closed connections
Expand Down
Loading