We should release the GIL around long-running tasks such as RSA key gen

Bug #896526 reported by Phil Mayers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyOpenSSL
Fix Committed
Undecided
Unassigned

Bug Description

As reported on the mailing list, pyopenssl blocks the entire Python interpreter when calling RSA_generate_key in crypto/pkey.c:crypto_PKey_generate_key and similarly for DSA key generation.

The code should release the GIL for these C calls, and for any other likely long-lived operates where it isn't already - the SSL code seems to already have this implemented.

Tags: blocking gil

Related branches

Changed in pyopenssl:
status: New → Confirmed
Changed in pyopenssl:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.