Skip to content

Commit ccfeaa4

Browse files
Copilotstephentoub
andcommitted
Improve comment clarity in StreamableHttpSession
Updated comment to be more precise about when LastActivityTicks is updated. Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 3ac44ac commit ccfeaa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ModelContextProtocol.AspNetCore/StreamableHttpSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public async ValueTask<IAsyncDisposable> AcquireReferenceAsync(CancellationToken
5858
{
5959
sessionManager.DecrementIdleSessionCount();
6060
}
61-
// Update LastActivityTicks whenever a request is made to keep the session alive
61+
// Update LastActivityTicks when acquiring reference in Started state to prevent timeout during active usage
6262
LastActivityTicks = sessionManager.TimeProvider.GetTimestamp();
6363
break;
6464
case SessionState.Disposed:

0 commit comments

Comments
 (0)