mdbq 4.0.112__py3-none-any.whl → 4.0.113__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mdbq might be problematic. Click here for more details.
- mdbq/__version__.py +1 -1
- mdbq/auth/auth_backend.py +14 -5
- {mdbq-4.0.112.dist-info → mdbq-4.0.113.dist-info}/METADATA +1 -1
- {mdbq-4.0.112.dist-info → mdbq-4.0.113.dist-info}/RECORD +6 -6
- {mdbq-4.0.112.dist-info → mdbq-4.0.113.dist-info}/WHEEL +0 -0
- {mdbq-4.0.112.dist-info → mdbq-4.0.113.dist-info}/top_level.txt +0 -0
mdbq/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = '4.0.
|
|
1
|
+
VERSION = '4.0.113'
|
mdbq/auth/auth_backend.py
CHANGED
|
@@ -135,19 +135,28 @@ class StandaloneAuthManager:
|
|
|
135
135
|
|
|
136
136
|
self.pool = PooledDB(
|
|
137
137
|
creator=pymysql,
|
|
138
|
-
maxconnections=
|
|
139
|
-
mincached=
|
|
140
|
-
maxcached=
|
|
138
|
+
maxconnections=4, # 最大连接数
|
|
139
|
+
mincached=2, # 初始空闲连接数
|
|
140
|
+
maxcached=4, # 最大缓存连接数
|
|
141
|
+
maxshared=0, # 不使用共享连接
|
|
141
142
|
blocking=True,
|
|
143
|
+
maxusage=1000, # 连接最大使用次数,防止连接泄漏
|
|
144
|
+
setsession=[], # 连接建立时执行的SQL
|
|
145
|
+
reset=True, # 连接归还时重置状态
|
|
146
|
+
failures=None, # 异常处理
|
|
147
|
+
ping=7, # 增加ping间隔:1 -> 7(7秒检查一次连接)
|
|
142
148
|
host=self.db_config['host'],
|
|
143
149
|
port=int(self.db_config['port']),
|
|
144
150
|
user=self.db_config['user'],
|
|
145
151
|
password=self.db_config['password'],
|
|
146
152
|
database=self.db_name,
|
|
147
|
-
ping=1,
|
|
148
153
|
charset='utf8mb4',
|
|
149
154
|
cursorclass=pymysql.cursors.DictCursor,
|
|
150
|
-
autocommit=True
|
|
155
|
+
autocommit=True, # 启用自动提交,避免锁冲突
|
|
156
|
+
# 添加连接超时设置
|
|
157
|
+
connect_timeout=10, # 连接超时10秒
|
|
158
|
+
read_timeout=30, # 读取超时30秒
|
|
159
|
+
write_timeout=30, # 写入超时30秒
|
|
151
160
|
# 使用系统本地时区,不强制设置UTC
|
|
152
161
|
)
|
|
153
162
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
mdbq/__init__.py,sha256=Il5Q9ATdX8yXqVxtP_nYqUhExzxPC_qk_WXQ_4h0exg,16
|
|
2
|
-
mdbq/__version__.py,sha256=
|
|
2
|
+
mdbq/__version__.py,sha256=42KwMqQ-Za1Lz_CSvZvKNabV7mdTqGdC0mUOA5U4azc,19
|
|
3
3
|
mdbq/auth/__init__.py,sha256=pnPMAt63sh1B6kEvmutUuro46zVf2v2YDAG7q-jV_To,24
|
|
4
|
-
mdbq/auth/auth_backend.py,sha256
|
|
4
|
+
mdbq/auth/auth_backend.py,sha256=-6PyJNwGnZd8BwFGnOn3396tj2fxy1uP5K1f0gC0zow,86562
|
|
5
5
|
mdbq/auth/rate_limiter.py,sha256=1m_Paxp8pDNpmyoFGRpFMVOJpbmeIvfVcfiQ2oH72qM,32850
|
|
6
6
|
mdbq/js/__init__.py,sha256=hpMi3_ZKwIWkzc0LnKL-SY9AS-7PYFHq0izYTgEvxjc,30
|
|
7
7
|
mdbq/js/jc.py,sha256=FOc6HOOTJwnoZLZmgmaE1SQo9rUnVhXmefhKMD2MlDA,13229
|
|
@@ -34,7 +34,7 @@ mdbq/route/routes.py,sha256=QVGfTvDgu0CpcKCvk1ra74H8uojgqTLUav1fnVAqLEA,29433
|
|
|
34
34
|
mdbq/selenium/__init__.py,sha256=AKzeEceqZyvqn2dEDoJSzDQnbuENkJSHAlbHAD0u0ZI,10
|
|
35
35
|
mdbq/selenium/get_driver.py,sha256=1NTlVUE6QsyjTrVVVqTO2LOnYf578ccFWlWnvIXGtic,20903
|
|
36
36
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
|
37
|
-
mdbq-4.0.
|
|
38
|
-
mdbq-4.0.
|
|
39
|
-
mdbq-4.0.
|
|
40
|
-
mdbq-4.0.
|
|
37
|
+
mdbq-4.0.113.dist-info/METADATA,sha256=Xby1UDQp6DPhWnf2FQSv8ymcjLHai2MoUjnZKMnMxic,365
|
|
38
|
+
mdbq-4.0.113.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
39
|
+
mdbq-4.0.113.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
|
40
|
+
mdbq-4.0.113.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|