mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
increase default timeout to be > github request timeout (#793)
* increase default timeout to 15s * Update MainClass.py
This commit is contained in:
committed by
Wan Liuyang
parent
0e8ae376a7
commit
140c648075
+4
-1
@@ -72,7 +72,10 @@ import Invitation
|
||||
atLeastPython3 = sys.hexversion >= 0x03000000
|
||||
|
||||
DEFAULT_BASE_URL = "https://api.github.com"
|
||||
DEFAULT_TIMEOUT = 10
|
||||
# As of 2018-05-17, Github imposes a 10s limit for completion of API requests.
|
||||
# Thus, the timeout should be slightly > 10s to account for network/front-end
|
||||
# latency.
|
||||
DEFAULT_TIMEOUT = 15
|
||||
DEFAULT_PER_PAGE = 30
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user