Dispatcharr/frontend/src/utils/forms/settings/ProxySettingsFormUtils.js
SergeantPanda 5c5a79962d
Some checks failed
CI Pipeline / prepare (push) Has been cancelled
Build and Push Multi-Arch Docker Image / build-and-push (push) Has been cancelled
Frontend Tests / test (push) Has been cancelled
CI Pipeline / docker (amd64, ubuntu-24.04) (push) Has been cancelled
CI Pipeline / docker (arm64, ubuntu-24.04-arm) (push) Has been cancelled
CI Pipeline / create-manifest (push) Has been cancelled
refactor(proxy): Add new client connect grace period setting and update channel initialization grace period defaults. The channel_client_wait_period is introduced to manage channel lifetimes before client connections, while the channel_init_grace_period default is increased to improve failover handling.
2026-06-28 11:34:44 -05:00

20 lines
518 B
JavaScript

import { PROXY_SETTINGS_OPTIONS } from '../../../constants.js';
export const getProxySettingsFormInitialValues = () => {
return Object.keys(PROXY_SETTINGS_OPTIONS).reduce((acc, key) => {
acc[key] = '';
return acc;
}, {});
};
export const getProxySettingDefaults = () => {
return {
buffering_timeout: 15,
buffering_speed: 1.0,
redis_chunk_ttl: 60,
channel_shutdown_delay: 0,
channel_init_grace_period: 60,
channel_client_wait_period: 5,
new_client_behind_seconds: 5,
};
};