Skip to content

smp server: limit pending delayed AUTH responses per connection - #1975

Open
evgeny-simplex wants to merge 1 commit into
simplex-chat:masterfrom
evgeny-simplex:ep/auth-delay-limit
Open

evgeny-simplex wants to merge 1 commit into
simplex-chat:masterfrom
evgeny-simplex:ep/auth-delay-limit

Conversation

@evgeny-simplex

@evgeny-simplex evgeny-simplex commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor
  • server: delayed AUTH responses of a connection are written with their send time to the bounded delayedQ of the client (the size of sndQ). One sendDelayed thread of the connection waits until each send time and passes the responses to sndQ. The thread that writes a delayed response waits while delayedQ is full, as it does for sndQ.
  • server: no thread is forked per delayed response; delayed responses are sent in the order they were produced.
  • tests: while delayed AUTH responses fill the queue, further commands of the client are not read (failed verification) or processed (command errors): a PING sent after them is answered after the delay.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant