New submission from Jeff Robbins <je...@livedata.com>:

By default, the __init__ function of IocpProactor in windows_events.py calls 
CreateIoCompletionPort with a 4th argument of 0xffffffff, yet MSDN doesn't 
document this as a valid argument.    
https://docs.microsoft.com/en-us/windows/desktop/fileio/createiocompletionport

It looks like the 4th arg (NumberOfConcurrentThreads) is meant to be either a 
positive integer or 0.  0 is a special value meaning "If this parameter is 
zero, the system allows as many concurrently running threads as there are 
processors in the system."

Why does asyncio use 0xffffffff instead as the default value?

----------
components: asyncio
messages: 332498
nosy: asvetlov, je...@livedata.com, yselivanov
priority: normal
severity: normal
status: open
title: Windows IocpProactor: CreateIoCompletionPort 4th arg 0xffffffff -- why 
is this value the default?
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to