ERROR:tornado上传文件过大超出范围报错

该怎么解决呢?

HTTPServer里面指定max_buffer_size就可以了

EXAMPLE

# server = HTTPServer(application, max_buffer_size=504857600)
# server.bind(port=options.port, address="0.0.0.0")
# server.start(10) # Forks multiple sub-process
# tornado.ioloop.IOLoop.current().start() from tornado.netutil import bind_sockets
from tornado.process import fork_processes
sockets = bind_sockets(port=options.port, address="0.0.0.0")
fork_processes(10)
server = HTTPServer(application, max_buffer_size=504857600)
server.add_sockets(sockets)
tornado.ioloop.IOLoop.current().start()
上一篇:关于ADB server didn't ACK * failed to start daemon *的问题


下一篇:蚂蚁金服×西安银行 | 西安银行手机银行App的智能升级之路