Can we avoid running IdleTrackingBackgroundService if HTTP Server transport is configured as stateless? #1485
srogovtsev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Discussion Topic
From what I can see in the code,
IdleTrackingBackgroundServicewill check for sessions to clear even if server is configured as stateless - which seems somewhat wasteful if we know that there'll never be an open session to clear. This is probably even more relevant after 1.2.0 which pushes to "stateless by default".csharp-sdk/src/ModelContextProtocol.AspNetCore/IdleTrackingBackgroundService.cs
Lines 38 to 44 in 54caccc
Beta Was this translation helpful? Give feedback.
All reactions