update to support user expire, timeout, and disconnect
This commit is contained in:
parent
fe65835f4a
commit
5fcd49e847
16 changed files with 744 additions and 238 deletions
18
config.toml
Normal file
18
config.toml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Chattyness Application Configuration
|
||||
|
||||
[websocket]
|
||||
# Timeout for receiving messages from client before considering connection dead (seconds)
|
||||
recv_timeout_secs = 45
|
||||
|
||||
# Interval for client to send ping to keep connection alive (seconds)
|
||||
client_ping_interval_secs = 30
|
||||
|
||||
[cleanup]
|
||||
# Interval for running stale member cleanup job (seconds)
|
||||
reap_interval_secs = 120
|
||||
|
||||
# Members with no activity for this duration are considered stale (seconds)
|
||||
stale_threshold_secs = 120
|
||||
|
||||
# Clear all instance_members on server startup (recommended for single-server deployments)
|
||||
clear_on_startup = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue