Fix timeout parameter — accepted but never applied to HTTP requests
#4
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every function in
db_calls.py(db_get,db_patch,db_post,db_put,db_delete,url_get) accepts atimeoutparameter but never passes it toaiohttp. Callers throughout passtimeout=30,timeout=6, etc. believing values are in effect. If API hangs, script hangs indefinitely.Fix:
aiohttp.ClientTimeout(total=timeout).Priority: high | Labels: bug, performance
PR opened: #41
Fix: Added
aiohttp.ClientTimeout(total=timeout)to all sixaiohttp.ClientSession()constructors indb_calls.py(db_get,url_get,db_patch,db_post,db_put,db_delete). Callers that passtimeout=30,timeout=6, etc. now have those values honoured at the HTTP layer.