mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Fix WebSocket disconnection when uploading large files (#9504)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -43,7 +43,11 @@ if redis_host:
|
||||
|
||||
|
||||
sio = socketio.AsyncServer(
|
||||
async_mode='asgi', cors_allowed_origins='*', client_manager=client_manager
|
||||
async_mode='asgi',
|
||||
cors_allowed_origins='*',
|
||||
client_manager=client_manager,
|
||||
# Increase buffer size to 4MB (to handle 3MB files with base64 overhead)
|
||||
max_http_buffer_size=4 * 1024 * 1024,
|
||||
)
|
||||
|
||||
MonitoringListenerImpl = get_impl(
|
||||
|
||||
Reference in New Issue
Block a user