TimingWheelOptions¶
TimingWheelOptions configures idle connection timeout detection in Nalix.Network.
Source mapping¶
src/Nalix.Network/Configurations/TimingWheelOptions.cs
Properties¶
| Property | Meaning | Default |
|---|---|---|
BucketCount |
Number of wheel buckets. | 512 |
TickDuration |
Tick interval in milliseconds. | 1000 |
IdleTimeoutMs |
Idle timeout before auto-close. | 60000 |
How to think about it¶
- lower
TickDurationgives faster timeout reaction but more overhead - larger
BucketCountreduces collisions IdleTimeoutMsshould reflect your protocol's expected silence window
This option matters only when timeout enforcement is enabled by the listener runtime.
Example¶
var options = new TimingWheelOptions
{
BucketCount = 512,
TickDuration = 1000,
IdleTimeoutMs = 60_000
};