You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Server][Conformance] Tool with sampling gets stuck #211
The reason is known actually. The StreamableHttpTransport uses SSE for server-client communication. So for sampling to work, the server sends a sampling request via the open SSE stream, the client processes the request and sends the response via a separate HTTP POST and the server needs to receive this POST while still streaming SSE.
PHP's built-in server (which was used in the conformance tests) is single-threaded and a single process so it can only handle one request at a time. While the SSE connection is open, it cannot accept the second request thus a deadlock.
Currently working on a fix and will put up a PR soon.
Activity
CodeWithKyrian commentedon Jan 1, 2026
The reason is known actually. The
StreamableHttpTransportuses SSE for server-client communication. So for sampling to work, the server sends a sampling request via the open SSE stream, the client processes the request and sends the response via a separate HTTP POST and the server needs to receive this POST while still streaming SSE.PHP's built-in server (which was used in the conformance tests) is single-threaded and a single process so it can only handle one request at a time. While the SSE connection is open, it cannot accept the second request thus a deadlock.
Currently working on a fix and will put up a PR soon.
chr-hertel commentedon Jan 2, 2026
Oh man, you're right - we discussed that before - maybe 3am was too late for tackling that :D