Skip to content

remove dead code - #714

Closed
Keksoj wants to merge 1 commit into
0.14from
accept_queue_limit
Closed

Keksoj wants to merge 1 commit into
0.14from
accept_queue_limit

Conversation

@Keksoj

@Keksoj Keksoj commented Sep 23, 2021

Copy link
Copy Markdown

While searching the codebase for #644, I stumbled upon dead code and confusing comments. This PR removes the code and makes those few comments relevant.

@Geal

Geal commented Sep 23, 2021

Copy link
Copy Markdown
Member

This should not be removed: I deactivated it when refactoring the sessions but did not have the time to reactivate it.

The behaviour should be:

  • if we reach the connection limit, stop accepting new connections and flush the accept queue, to signal quickly to clients that they should reconnect elsewhere
  • wait until we recover some capacity before accepting again (otherwise it will spend its time stopping then accepting again)

@FlorentinDUBOIS

Copy link
Copy Markdown
Collaborator

Is the connection limit, the number of entry in the session slab ?

@Geal

Geal commented Sep 23, 2021

Copy link
Copy Markdown
Member

It should be the max number of slab elements, but:

  • each socket listener takes one slab element
  • a HTTP 1 session takes 1 or 2 slab elements
  • a HTTP 2 session could take more than 2 slab elements

So the value will never be extremely precise, it depends on the usage

@FlorentinDUBOIS

Copy link
Copy Markdown
Collaborator

We will keep those code in the codebase until we will use it or refactor it

@Keksoj
Keksoj deleted the accept_queue_limit branch November 9, 2022 09:52
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.

3 participants