[Server] Stdio session expires after an hour of silence

オープン
#672 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php

調査の方向性

Read the stdio server setup and InMemorySessionStore implementation, then trace how the stdio transport creates and uses its session. The issue reproduces with a two-second TTL, five seconds of silence, and a ping; use that sequence to check the behavior. Done means an idle stdio session still answers after the default one-hour TTL without requiring reconnection.

索引モデルが issue の本文から書いたものです。

説明

A stdio server stops answering after an hour without input: every request then gets Session not found or has expired, without an id, so the client cannot match it to its call, until it reconnects. InMemorySessionStore applies its default TTL of 3600 seconds and nothing renews the session on an idle connection. A stdio session has one client and lasts as long as the process, so it should not expire.

Reproduced on main on Linux with setSession(new InMemorySessionStore(2)), 5 seconds of silence and a ping. A workaround is setSession(new InMemorySessionStore(ttl: PHP_INT_MAX)).

主要言語
PHP
スター
1.7k
フォーク
206
平均マージ
1日 17時間
マージ済み PR(30日)
102

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/php-sdk のほかの issue

modelcontextprotocol/php-sdk の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。