Commit 3ac44ac
Fix session timeout by updating LastActivityTicks on every request
Update LastActivityTicks whenever a reference is acquired in the Started state,
not just when reference count drops to 0. This ensures sessions with ongoing
activity (POST requests) don't timeout even if a GET request is active.
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>1 parent 8b354d4 commit 3ac44ac
2 files changed
Lines changed: 29 additions & 0 deletions
File tree
- src/ModelContextProtocol.AspNetCore
- tests/ModelContextProtocol.AspNetCore.Tests
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
524 | 551 | | |
525 | 552 | | |
526 | 553 | | |
| |||
0 commit comments