Django 使用 DBUtils 的 PooledDB, 出错,求指导

2015-10-09 15:36:09 +08:00
 Walleve0
配置了 Pooleddb

pool = PooledDB(MySQLdb,mincached=5,maxshared=5,maxconnections=10,host='localhost',user='root',passwd='XXX',db='XXX',port=3306)

在请求较多时, IDE 调试会报出这个错。 求高手指导。

[09/Oct/2015 14:07:55] "POST XXXXXX HTTP/1.1" 500 59
Traceback (most recent call last):
File "C:\Python27\Lib\SocketServer.py", line 599, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python27\Lib\SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\sjiang1\NewRule360env\lib\site-packages\django\core\servers\basehttp.py", line 129, in __init__
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
File "C:\Python27\Lib\SocketServer.py", line 657, in __init__
self.finish()
File "C:\Python27\Lib\SocketServer.py", line 716, in finish
self.wfile.close()
File "C:\Python27\Lib\socket.py", line 279, in close
self.flush()
File "C:\Python27\Lib\socket.py", line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053] An established connection was aborted by the software in your host m
2328 次点击
所在节点    Python
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/226626

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX