Server Config
DocsConfigurationServer Config

Server Config

Port, timeout, max streams, keepalive intervals

Managing server configuration allows tailoring KSP to specific network topologies. Below is a recommended configuration file format using TOML.

Configuration Schema (TOML)

# KSP Server Configuration Reference
[server]
port = 9876
bind_address = "0.0.0.0"
max_connections = 10000
worker_threads = 8

[security]
cert_path = "/etc/ksp/certs/server.cert"
key_path = "/etc/ksp/keys/server.key"
client_auth = "optional"      # "none", "optional", "required"
allowed_ciphers = ["AES_256_GCM", "CHACHA20_POLY1305"]

[protocol]
keepalive_interval_secs = 30
keepalive_timeout_secs = 10
handshake_timeout_secs = 10
max_concurrent_streams = 256
initial_window_size = 65535

Config Parameters:

  • port: The default listening port for KSP is 9876.
  • keepalive_interval_secs: Sends silent ping packets every 30s to verify connection health.
  • initial_window_size: Determines the maximum buffer backlog (in bytes) allowed per stream before requiring a WindowUpdate frame.