推荐学习书目
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 · Oct 9, 2015 · 2745 views
    This topic created in 3884 days ago, the information mentioned may be changed or developed.
    配置了 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
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   952 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:39 · PVG 05:39 · LAX 14:39 · JFK 17:39
    ♥ Do have faith in what you're doing.