修复了数据库连接不断开的bug

This commit is contained in:
MarkusJoe
2022-02-09 16:43:55 +08:00
parent baf99a905c
commit a1672a4294
5 files changed
+76 -145

No files matched your search

+7 -2
View File
@@ -7,7 +7,12 @@
import requests
import threading
for i in range(100):
print(requests.get('http://127.0.0.1:5000/API?name=89999&length=10&theme=t2').elapsed.microseconds)
def thread_():
print(requests.get('http://127.0.0.1:5000/get?name=89999&length=10&theme=t2').elapsed.microseconds)
for i in range(1000000):
threading.Thread(target=thread_).start()