did some fixes

This commit is contained in:
2025-08-23 22:59:10 +02:00
parent e2aad6903f
commit ab597010fd
3 changed files with 8 additions and 6 deletions

View File

@@ -25,11 +25,11 @@ app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'dev-secret-key-change-i
socketio = SocketIO(app, cors_allowed_origins="*", async_mode='eventlet')
# Security constants
MAX_MESSAGES = 256
MAX_MESSAGES = 512
MAX_ROOM_ID_LENGTH = 32
MAX_MESSAGE_SIZE = 8192 # 8KB max encrypted message
MAX_ROOMS_PER_IP = 5
MAX_USERS_PER_ROOM = 50
MAX_ROOMS_PER_IP = 100
MAX_USERS_PER_ROOM = 1000
ROOM_CLEANUP_INTERVAL = 3600 # 1 hour
USER_SESSION_TIMEOUT = 3600 # 1 hour