Fix WebSocket disconnection when uploading large files (#9504)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
sp.wack
2025-07-03 16:28:30 +04:00
committed by GitHub
parent ac2947b7ff
commit b3c8b7c089
4 changed files with 107 additions and 11 deletions

View File

@@ -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(