1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +00:00

Change the upload file size limit from 100MB to 500MB.

Fixes http://forum.gns3.net/topic9000.html
This commit is contained in:
grossmj 2014-04-09 13:03:01 -06:00
parent 27379682df
commit 2bb3c0b466

View File

@ -134,9 +134,12 @@ class Server(object):
tornado_app = tornado.web.Application(self.handlers,
template_path=os.path.join(os.path.dirname(__file__), "templates"),
debug=True) # FIXME: debug mode!
try:
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:
if e.errno == errno.EADDRINUSE: # socket already in use
logging.critical("socket in use for {}:{}".format(self._host, self._port))