increase default timeout to be > github request timeout (#793)

* increase default timeout to 15s

* Update MainClass.py
This commit is contained in:
Joshua Hoblitt
2018-05-21 10:39:33 +08:00
committed by Wan Liuyang
parent 0e8ae376a7
commit 140c648075
+4 -1
View File
@@ -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