Skip to content

Commit 68c534b

Browse files
committed
reduced logging level of user initiated SCTP abort
1 parent a4814c0 commit 68c534b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/net/SCTP/SctpAssociation.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ internal void OnPacketReceived(SctpPacketView packet)
399399
case SctpChunkType.ABORT:
400400
var abortChunk = (SctpAbortChunk)chunk.AsChunk();
401401
string abortReason = abortChunk.GetAbortReason();
402+
var logLevel = abortChunk.ErrorCauses.Any(cause => cause.CauseCode == SctpErrorCauseCode.UserInitiatedAbort)
403+
? LogLevel.Debug : LogLevel.Warning;
402404
logger.LogWarning("SCTP packet ABORT chunk received from remote party, reason {Message}.", abortReason);
403405
_wasAborted = true;
404406
OnAbortReceived?.Invoke(abortReason);

0 commit comments

Comments
 (0)