Skip to content

Commit 4ac7f0e

Browse files
muxueqzwang0618
authored andcommitted
fix. fix OverflowError on Windows #181
1 parent 99593db commit 4ac7f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywebio/platform/tornado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def server_thread():
463463
port = int(os.environ.get("PYWEBIO_SCRIPT_MODE_PORT"))
464464

465465
server, port = _setup_server(webio_handler=SingleSessionWSHandler, port=port, host='localhost',
466-
websocket_max_message_size=parse_file_size('4G'))
466+
websocket_max_message_size=parse_file_size('200M'))
467467
tornado.ioloop.IOLoop.current().spawn_callback(partial(wait_to_stop_loop, server=server))
468468

469469
if "PYWEBIO_SCRIPT_MODE_PORT" not in os.environ:

0 commit comments

Comments
 (0)