mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Reworked fan in logic. We do not hold locks during IO, either read or write. On scenarios where we can get behind mostly due to fan-in from fast producers we detect and create a stall channel. Once we catch up we close the stall channel to release all blocked producers. Producers have an upper bound on how long they will be stalled. Signed-off-by: Derek Collison <derek@nats.io>
78 KiB
78 KiB