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"
21
21
qiniu = " >=7.1.4,<7.2.4"
22
22
"urllib3" = " >=1.24.3,<=1.25.3"
23
23
requests = " >=2.20.0,<=2.22.0"
24
+ requests-toolbelt = " >=1.0.0"
24
25
Werkzeug = " >=0.11.11,<1.0.0"
25
26
gevent = " >=22.10.2,<23.0.0"
26
27
typing = { version = " *" , markers = " python_version < '3.5.0'" }
Original file line number Diff line number Diff line change 13
13
14
14
import six
15
15
import requests
16
+ from requests_toolbelt .adapters .socket_options import TCPKeepAliveAdapter
16
17
17
18
import leancloud
18
19
from leancloud import utils
43
44
44
45
app_router = None
45
46
session = requests .Session ()
47
+ session .mount ("http://" , TCPKeepAliveAdapter ())
48
+ session .mount ("https://" , TCPKeepAliveAdapter ())
46
49
request_hooks = {}
47
50
48
51
SERVER_VERSION = "1.1"
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ iso8601>=0.1.14
4
4
six >= 1.11.0
5
5
qiniu >= 7.3.1
6
6
requests >= 2.25.1
7
+ requests-toolbelt >= 1.0.0
7
8
Werkzeug >= 0.16.0 ,< 2.0.0
8
9
secure-cookie >= 0.1.0 ,< 1.0.0
9
10
gevent >= 22.10.2 ,< 23.0.0
Original file line number Diff line number Diff line change 12
12
'six>=1.11.0' ,
13
13
'qiniu==7.3.1' ,
14
14
'requests>=2.25.1' ,
15
+ 'requests-toolbelt>=1.0.0' ,
15
16
'Werkzeug>=0.16.0,<2.0.0' ,
16
17
'secure-cookie>=0.1.0,<1.0.0' ,
17
18
'gevent>=22.10.2,<23.0.0' ,
You can’t perform that action at this time.
0 commit comments