V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Walleve0
V2EX  ›  Python

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

  •  
  •   Walleve0 · 2015-10-09 15:36:09 +08:00 · 2285 次点击
    这是一个创建于 3132 天前的主题,其中的信息可能已经有所发展或是发生改变。
    配置了 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
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2604 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:54 · PVG 23:54 · LAX 08:54 · JFK 11:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.