mcp: _send_request may deadlock on stderr buffer #90

Closed
opened 2026-07-05 14:13:33 +00:00 by the.auditor · 0 comments
Owner

In src/kronai/mcp.py:149-158, _send_request reads a single stdout line from the subprocess. If the MCP server writes enough stderr output before responding, the pipe buffer could fill and cause a deadlock.

Consider stderr=subprocess.DEVNULL if stderr isn't needed during normal operation, or read stderr asynchronously.

From PR #88 review suggestion.

In `src/kronai/mcp.py:149-158`, `_send_request` reads a single stdout line from the subprocess. If the MCP server writes enough stderr output before responding, the pipe buffer could fill and cause a deadlock. Consider `stderr=subprocess.DEVNULL` if stderr isn't needed during normal operation, or read stderr asynchronously. _From PR #88 review suggestion._
fuzzy closed this issue 2026-07-05 16:42:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai#90
No description provided.