Policy
PolicyConfig — connection timeouts and buffers
Connection policy is set in ServerConfig.policy (PolicyConfig). Schema: protos/proto/vx/policy.proto.
All timeout values are in seconds unless noted otherwise in your deployment tooling.
PolicyConfig
| Field | Type | Description |
|---|---|---|
handshakeTimeout | int32 | Close if no data is received after connect |
connectionIdleTimeout | int32 | Close when idle (no transfer in either direction) |
udpIdleTimeout | int32 | Close UDP when no uplink data |
upLinkOnlyTimeout | int32 | After downlink finished, close if no uplink data |
downLinkOnlyTimeout | int32 | After uplink finished, close if no downlink data |
defaultBufferSize | int32 | Default per-connection buffer (not all protocols honor this) |
userPolicyMap | map<uint32, UserPolicy> | Per userLevel overrides |
UserPolicy
| Field | Description |
|---|---|
bufferSize | Buffer size for users at this level |
User levels come from UserConfig userLevel on each account.
Example
{
"policy": {
"handshakeTimeout": 4,
"connectionIdleTimeout": 300,
"udpIdleTimeout": 60,
"userPolicyMap": {
"0": { "bufferSize": 4096 }
}
}
}Related
- Users —
userLevelper account