only use forking on posix
This commit is contained in:
parent
bfa711b939
commit
901c5d059f
@ -37,7 +37,7 @@ from urllib.parse import unquote
|
|||||||
from radicale import Application
|
from radicale import Application
|
||||||
from radicale.log import logger
|
from radicale.log import logger
|
||||||
|
|
||||||
if hasattr(socketserver, "ForkingMixIn"):
|
if os.name == "posix":
|
||||||
ParallelizationMixIn = socketserver.ForkingMixIn
|
ParallelizationMixIn = socketserver.ForkingMixIn
|
||||||
else:
|
else:
|
||||||
ParallelizationMixIn = socketserver.ThreadingMixIn
|
ParallelizationMixIn = socketserver.ThreadingMixIn
|
||||||
|
Loading…
Reference in New Issue
Block a user