arcanist_windows_stream.patch (703B)
1 diff --git a/src/channel/PhutilSocketChannel.php b/src/channel/PhutilSocketChannel.php 2 index 4bd2a47a..2ad3fd85 100644 3 --- a/src/channel/PhutilSocketChannel.php 4 +++ b/src/channel/PhutilSocketChannel.php 5 @@ -46,9 +46,11 @@ final class PhutilSocketChannel extends PhutilChannel { 6 if (!$socket) { 7 continue; 8 } 9 - $ok = stream_set_blocking($socket, false); 10 - if (!$ok) { 11 - throw new Exception(pht('Failed to set socket nonblocking!')); 12 + if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { 13 + $ok = stream_set_blocking($socket, false); 14 + if (!$ok) { 15 + throw new Exception(pht('Failed to set socket nonblocking!')); 16 + } 17 } 18 }