]> granicus.if.org Git - python/commitdiff
Issue #19227 / Issue #18747: Remove pthread_atfork() handler to remove OpenSSL re...
authorChristian Heimes <christian@cheimes.de>
Tue, 29 Oct 2013 20:11:55 +0000 (21:11 +0100)
committerChristian Heimes <christian@cheimes.de>
Tue, 29 Oct 2013 20:11:55 +0000 (21:11 +0100)
It is causing trouble like e.g. hanging processes.

1  2 
Doc/library/os.rst
Doc/library/ssl.rst
Misc/NEWS
Modules/_ssl.c

Simple merge
index e86da5fc29175af75ae0a71bee62eceb06354ab1,a12ce5b4436955e78b03d4923209485336c04701..e6f164d062048e0b7270d134e78135ba915c19cf
@@@ -26,9 -26,16 +26,17 @@@ probably additional platforms, as long 
  
     Some behavior may be platform dependent, since calls are made to the
     operating system socket APIs.  The installed version of OpenSSL may also
 -   cause variations in behavior.
 +   cause variations in behavior. For example, TLSv1.1 and TLSv1.2 come with
 +   openssl version 1.0.1.
  
+ .. warning::
+    OpenSSL's internal random number generator does not properly handle fork.
+    Applications must change the PRNG state of the parent process if they use
+    any SSL feature with with :func:`os.fork`. Any successful call of
+    :func:`~ssl.RAND_add`, :func:`~ssl.RAND_bytes` or
+    :func:`~ssl.RAND_pseudo_bytes` is sufficient.
  This section documents the objects and functions in the ``ssl`` module; for more
  general information about TLS, SSL, and certificates, the reader is referred to
  the documents in the "See Also" section at the bottom.
diff --cc Misc/NEWS
index 55403e9efdfe342e7b8ae6a5a7efbf2e6046c154,e83016719309e7320e366f6e9ee6480fded9ed58..cefc0edc3a3cfff729a3a98ce635bda4689dffb5
+++ b/Misc/NEWS
@@@ -28,10 -92,9 +28,13 @@@ Core and Builtin
  Library
  -------
  
 -- Issue #19395: Raise an exception when attempting to pickle a bz2 or lzma
 -  compressor/decompressor object, rather than creating a pickle that would
 -  cause a segfault when loaded and used.
++- Issue #19227: Remove pthread_atfork() handler. The handler was added to
++  solve #18747 but has caused issues.
++
 +- Issue #19420: Fix reference leak in module initalization code of
 +  _hashopenssl.c
 +
 +- Issue #19329: Optimized compiling charsets in regular expressions.
  
  - Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL
    pseudo-random number generator on fork().
diff --cc Modules/_ssl.c
Simple merge