File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ internal static class ConnectionClosedReason
18
18
{
19
19
public const string Normal = "TCP connection closed normal" ;
20
20
public const string Unexpected = "TCP connection closed unexpected" ;
21
- public const string MissingHeartbeat = "TCP connection closed missing heartbeat " ;
21
+ public const string TooManyHeartbeatsMissing = "TCP connection closed by too many heartbeats missing " ;
22
22
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ private async Task PerformHeartBeatAsync()
83
83
// Even it is not a perfect solution, it is a good way to handle the case to avoid to introduce breaking changes
84
84
// we need to review all the status and the close reason on the version 2.0
85
85
await _close ( $ "Too many heartbeats missed: { _missedHeartbeat } . Client connection will be closed.",
86
- ConnectionClosedReason . MissingHeartbeat ) . ConfigureAwait ( false ) ;
86
+ ConnectionClosedReason . TooManyHeartbeatsMissing ) . ConfigureAwait ( false ) ;
87
87
}
88
88
89
89
internal void UpdateHeartBeat ( )
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ protected static ChangeStatusReason FromConnectionClosedReasonToStatusReason(str
122
122
// Can be removed on the version 2.0 when the ConnectionClosedReason will be an enum as well
123
123
return connectionClosedReason switch
124
124
{
125
- ConnectionClosedReason . MissingHeartbeat => ChangeStatusReason . DisconnectedByTooManyHeartbeatMissing ,
125
+ ConnectionClosedReason . TooManyHeartbeatsMissing => ChangeStatusReason . DisconnectedByTooManyHeartbeatMissing ,
126
126
ConnectionClosedReason . Unexpected => ChangeStatusReason . UnexpectedlyDisconnected ,
127
127
_ => throw new ArgumentOutOfRangeException ( nameof ( connectionClosedReason ) , connectionClosedReason , null )
128
128
} ;
You can’t perform that action at this time.
0 commit comments