From 901c5d059f8777fba729ef9e84ab257202a5224a Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 5 Sep 2018 11:30:25 +0200 Subject: [PATCH] only use forking on posix --- radicale/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/server.py b/radicale/server.py index 038f90b..c0498d9 100644 --- a/radicale/server.py +++ b/radicale/server.py @@ -37,7 +37,7 @@ from urllib.parse import unquote from radicale import Application from radicale.log import logger -if hasattr(socketserver, "ForkingMixIn"): +if os.name == "posix": ParallelizationMixIn = socketserver.ForkingMixIn else: ParallelizationMixIn = socketserver.ThreadingMixIn