Skip to content

Conversation

dnadoba
Copy link
Collaborator

@dnadoba dnadoba commented Nov 3, 2021

Follow up PR for #462 to improve performance as proposed in #462 (comment)

This also fixes a bug where we would not create a new connection after a backoff timer fires if we have other connections backing off. (in hasAnyStartingOrActiveConnectionAnd we also returned true if a connection is in the backing off state)

/// - Returns:
/// `onAnyEventLoop`: true if at least one connection is starting or active regardless of the event loop.
/// `onSpecifiedEventLoop`: true if at least one connection is starting or active for the given `eventLoop`.
func hasAnyStartingOrActiveConnectionAnd(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The And looks out of place

@dnadoba dnadoba merged commit 18a58bb into swift-server:main Nov 3, 2021
@dnadoba dnadoba deleted the dn-http2-improve-performance branch November 3, 2021 14:29
@dnadoba dnadoba added the 🔨 semver/patch No public API change. label Nov 3, 2021
@fabianfett fabianfett added this to the HTTP/2 support milestone Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants