Skip to content

Commit 6449022

Browse files
committed
Update MaxIdleSessionCount to default to 10,000
1 parent 8ee7894 commit 6449022

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ModelContextProtocol.AspNetCore/HttpServerTransportOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public class HttpServerTransportOptions
6666
/// Past this limit, the server will log a critical error and terminate the oldest idle sessions even if they have not reached
6767
/// their <see cref="IdleTimeout"/> until the idle session count is below this limit. Clients that keep their session open by
6868
/// keeping a GET request open will not count towards this limit.
69-
/// Defaults to 100,000 sessions.
69+
/// Defaults to 10,000 sessions.
7070
/// </remarks>
71-
public int MaxIdleSessionCount { get; set; } = 100_000;
71+
public int MaxIdleSessionCount { get; set; } = 10_000;
7272

7373
/// <summary>
7474
/// Used for testing the <see cref="IdleTimeout"/>.

src/ModelContextProtocol.Core/McpSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ private static TimeSpan GetElapsed(long startingTimestamp) =>
736736
[LoggerMessage(Level = LogLevel.Warning, Message = "{EndpointName} method '{Method}' request handler failed.")]
737737
private partial void LogRequestHandlerException(string endpointName, string method, Exception exception);
738738

739-
[LoggerMessage(Level = LogLevel.Information, Message = "{EndpointName} received request for unknown request ID '{RequestId}'.")]
739+
[LoggerMessage(Level = LogLevel.Information, Message = "{EndpointName} received message for unknown request ID '{RequestId}'.")]
740740
private partial void LogNoRequestFoundForMessageWithId(string endpointName, RequestId requestId);
741741

742742
[LoggerMessage(Level = LogLevel.Warning, Message = "{EndpointName} request failed for method '{Method}': {ErrorMessage} ({ErrorCode}).")]

0 commit comments

Comments
 (0)