Improve training test 3
This commit is contained in:
@@ -173,7 +173,14 @@ async def _proxy_request(request: Request, target_path: str, service_url: str):
|
||||
# Add query parameters
|
||||
params = dict(request.query_params)
|
||||
|
||||
async with httpx.AsyncClient(timeout=30.0) as client:
|
||||
timeout_config = httpx.Timeout(
|
||||
connect=30.0, # Connection timeout
|
||||
read=600.0, # Read timeout: 10 minutes (was 30s)
|
||||
write=30.0, # Write timeout
|
||||
pool=30.0 # Pool timeout
|
||||
)
|
||||
|
||||
async with httpx.AsyncClient(timeout=timeout_config) as client:
|
||||
response = await client.request(
|
||||
method=request.method,
|
||||
url=url,
|
||||
|
||||
Reference in New Issue
Block a user