mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Change the upload file size limit from 100MB to 500MB.
Fixes http://forum.gns3.net/topic9000.html
This commit is contained in:
parent
27379682df
commit
2bb3c0b466
@ -134,9 +134,12 @@ class Server(object):
|
|||||||
tornado_app = tornado.web.Application(self.handlers,
|
tornado_app = tornado.web.Application(self.handlers,
|
||||||
template_path=os.path.join(os.path.dirname(__file__), "templates"),
|
template_path=os.path.join(os.path.dirname(__file__), "templates"),
|
||||||
debug=True) # FIXME: debug mode!
|
debug=True) # FIXME: debug mode!
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print("Starting server on {}:{}".format(self._host, self._port))
|
print("Starting server on {}:{}".format(self._host, self._port))
|
||||||
tornado_app.listen(self._port, address=self._host)
|
tornado_app.listen(self._port,
|
||||||
|
address=self._host,
|
||||||
|
max_buffer_size=524288000) # 500 MB file upload limit
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == errno.EADDRINUSE: # socket already in use
|
if e.errno == errno.EADDRINUSE: # socket already in use
|
||||||
logging.critical("socket in use for {}:{}".format(self._host, self._port))
|
logging.critical("socket in use for {}:{}".format(self._host, self._port))
|
||||||
|
Loading…
Reference in New Issue
Block a user