Skip to content

mindle-mcp: add socket read timeout in callMindle #14

Description

@nonatofabio

Final code review on PR #13 caught this. When Mindle crashes after accept() but before responding, the helper's readExact blocks indefinitely. setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, ...) on the socket with a value matching the tool's logical timeout + ~5s headroom would make the helper robust. Low severity: requires a hard crash (not just disconnect), and current users will work around by killing the helper process.

Affects Sources/MindleMCP/main.swift, callMindle socket setup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions