Sfoglia il codice sorgente

fix. fix OverflowError on Windows #181

muxueqz 3 anni fa
parent
commit
4ac7f0e52c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pywebio/platform/tornado.py

+ 1 - 1
pywebio/platform/tornado.py

@@ -463,7 +463,7 @@ def start_server_in_current_thread_session():
             port = int(os.environ.get("PYWEBIO_SCRIPT_MODE_PORT"))
             port = int(os.environ.get("PYWEBIO_SCRIPT_MODE_PORT"))
 
 
         server, port = _setup_server(webio_handler=SingleSessionWSHandler, port=port, host='localhost',
         server, port = _setup_server(webio_handler=SingleSessionWSHandler, port=port, host='localhost',
-                                     websocket_max_message_size=parse_file_size('4G'))
+                                     websocket_max_message_size=parse_file_size('200M'))
         tornado.ioloop.IOLoop.current().spawn_callback(partial(wait_to_stop_loop, server=server))
         tornado.ioloop.IOLoop.current().spawn_callback(partial(wait_to_stop_loop, server=server))
 
 
         if "PYWEBIO_SCRIPT_MODE_PORT" not in os.environ:
         if "PYWEBIO_SCRIPT_MODE_PORT" not in os.environ: