Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ extension Target {
static let grpcHTTP2CoreTests: Target = .testTarget(
name: "GRPCHTTP2CoreTests",
dependencies: [
.grpcHTTP2Core
.grpcHTTP2Core,
.nioCore,
.nioHTTP2,
.nioEmbedded,
]
)

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import NIOCore
import NIOHTTP2

extension ServerConnectionHandler {
extension ServerConnectionManagementHandler {
/// Tracks the state of TCP connections at the server.
///
/// The state machine manages the state for the graceful shutdown procedure as well as policing
Expand Down Expand Up @@ -248,7 +248,7 @@ extension ServerConnectionHandler {
}
}

extension ServerConnectionHandler.StateMachine {
extension ServerConnectionManagementHandler.StateMachine {
fileprivate struct KeepAlive {
/// Allow the client to send keep alive pings when there are no active calls.
private let allowWithoutCalls: Bool
Expand All @@ -267,8 +267,7 @@ extension ServerConnectionHandler.StateMachine {
/// alive (a low number of strikes is therefore expected and okay).
private var pingStrikes: Int

/// The last time a valid ping happened. This may be in the distant past if there is no such
/// time (for example the connection is new and there are no active calls).
/// The last time a valid ping happened.
///
/// Note: `distantPast` isn't used to indicate no previous valid ping as `NIODeadline` uses
/// the monotonic clock on Linux which uses an undefined starting point and in some cases isn't
Expand Down Expand Up @@ -320,7 +319,7 @@ extension ServerConnectionHandler.StateMachine {
}
}

extension ServerConnectionHandler.StateMachine {
extension ServerConnectionManagementHandler.StateMachine {
fileprivate enum State {
/// The connection is active.
struct Active {
Expand Down
Loading