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
Reconcile PR 116's WindowsPipeStream with PR 119's WindowsPipeWriteStream #131
PR #116 (claude/unruffled-ishizaka-e4a0fa, Windows pipes) and PR #119 both give the Windows IO.pipe its own stream class:
Retire 2016-era code and bring the core closer to CRuby 4.0 #119: Src/Libraries/Builtins/WindowsPipeWriteStream.cs, a FileStream for the write end only. It honours WriteTimeout (so IO#timeout bounds a write into a full pipe) and implements INonBlockingWriteStream (so write_nonblock raises EAGAIN instead of blocking). Both use IoReadiness.GetWindowsPipeRoom (NtQueryInformationFile → WriteQuotaAvailable). IO#read_nonblock on a Windows pipe now asks PeekNamedPipe first (IoOps.ReadOnceWithoutWaiting).
#116 also conflicts with #119 in Src/Libraries/Builtins/IoOps.cs. When #116 is rebased or merged, its stream should take over and keep #119's behaviour, which these tests now cover on Windows: Io_Timeout2 (timeouts on a full pipe, read_nonblock on an empty one) and WeakMap_NoBlock1 (write_nonblock into a full pipe). Run the full IronRuby.Tests suite on Windows: it passes in full on #119's head (1,067 tests, net8.0 and net10.0).
Activity
WindowsPipeStream takes over IO#timeout from WindowsPipeWriteStream