Skip to content

Commit

Permalink
Adding IdleConnectionTimeout for AMQP (#15926)
Browse files Browse the repository at this point in the history
  • Loading branch information
serkantkaraca authored Oct 13, 2020
1 parent b0ea662 commit 51f9fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ class AmqpClientConstants

// Miscellaneous
public const int AmqpSessionTimeoutInSeconds = 30;
public static TimeSpan ConnectionIdleTimeout = TimeSpan.FromMinutes(1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ static AmqpConnectionSettings CreateAmqpConnectionSettings(uint maxFrameSize, st
{
MaxFrameSize = maxFrameSize,
ContainerId = containerId,
HostName = hostName
HostName = hostName,
IdleTimeOut = (uint)AmqpClientConstants.ConnectionIdleTimeout.TotalMilliseconds
};

ClientInfo.Add(connectionSettings);
Expand Down

0 comments on commit 51f9fad

Please sign in to comment.