-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed as not planned
Closed as not planned
Copy link
Labels
OS-windowsextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
When running the code below it causes ~143,000 disk operations to read in the entire file. This is because it is doing 2 bytes at a time for some reason.
import ssl
import certifi
ssl.create_default_context(cafile=certifi.where())
How to replicate
- Download & Run Procmon https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
- Make sure you aren't running any other Python code to make the capture easier
- In the filter window have it filter for
Process Name
contains
python

If reading the file normally with open
then it behaves as expected and only does a handful of calls
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-windowsextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-SSLtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error