Commit Graph
3 Commits
Author SHA1 Message Date
faumaray 3c6f458deb MCP: make stdio reads cancellable and time-bounded on Windows
Windows anonymous pipes have no non-blocking mode, so read_message could
block forever ignoring the stop token and the I/O deadline. Wait for
readable data with PeekNamedPipe (honouring cancellation and the timeout)
before the blocking read.

The stdio transport tests now use CRT pipe helpers on Windows; the framing
test runs everywhere and the cancellation test covers the cancellable read
on both platforms (the non-blocking-write half stays POSIX-only).
2026-12-06 16:29:54 +03:00
faumaray c6ba2f42b5 Windows: portability fixes for IPC, SystemAsync and MCP tests
- IPC: map poll() onto WSAPoll and link ws2_32 on Windows (the module's
  remaining POSIX socket surface still needs a dedicated port).
- SystemAsync: define the non-ANSI SIGTERM/SIGKILL values the Windows
  process backend interprets itself.
- MCP tests: stdio transport cases skip on Windows instead of being
  compiled out (the scanner cannot evaluate #if guards).
- SystemAsync tests: mark the POSIX process-helper suite with
  @requires-posix.

Refs #65
2026-12-06 02:41:08 +03:00
faumaray 32569bbfef MCP: add reusable protocol and transport foundations (closes #45) 2026-12-03 16:55:20 +03:00