From edc6c097c2a1e67e25fce7480564cedad9bb84d1 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 23 Jun 2017 17:47:32 -0500 Subject: [PATCH] Use blocking driver on Windows --- lib/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/functions.php b/lib/functions.php index 22fc401..d109687 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -42,6 +42,10 @@ function driver(): Driver { return new EioDriver; } + if (\strncasecmp(\PHP_OS, "WIN", 3) === 0) { + return new BlockingDriver; + } + return new ParallelDriver; }