File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed
Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ six = ">=1.11.0"
2121qiniu = " >=7.1.4,<7.2.4"
2222"urllib3" = " >=1.24.3,<=1.25.3"
2323requests = " >=2.20.0,<=2.22.0"
24+ requests-toolbelt = " >=1.0.0"
2425Werkzeug = " >=0.11.11,<1.0.0"
2526gevent = " >=22.10.2,<23.0.0"
2627typing = { version = " *" , markers = " python_version < '3.5.0'" }
Original file line number Diff line number Diff line change 1313
1414import six
1515import requests
16+ from requests_toolbelt .adapters .socket_options import TCPKeepAliveAdapter
1617
1718import leancloud
1819from leancloud import utils
4344
4445app_router = None
4546session = requests .Session ()
47+ session .mount ("http://" , TCPKeepAliveAdapter ())
48+ session .mount ("https://" , TCPKeepAliveAdapter ())
4649request_hooks = {}
4750
4851SERVER_VERSION = "1.1"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ iso8601>=0.1.14
44six >= 1.11.0
55qiniu >= 7.3.1
66requests >= 2.25.1
7+ requests-toolbelt >= 1.0.0
78urllib3 < 2
89Werkzeug >= 0.16.0 ,< 2.0.0
910secure-cookie >= 0.1.0 ,< 1.0.0
Original file line number Diff line number Diff line change 1212 'six>=1.11.0' ,
1313 'qiniu==7.3.1' ,
1414 'requests>=2.25.1' ,
15+ 'requests-toolbelt>=1.0.0' ,
1516 'Werkzeug>=0.16.0,<2.0.0' ,
1617 'secure-cookie>=0.1.0,<1.0.0' ,
1718 'gevent>=22.10.2,<23.0.0' ,
You can’t perform that action at this time.
0 commit comments