Closed chris-allan closed 4 years ago
/cc @kkoz
Conflicting PR. Removed from build OMERO-python-superbuild-push#403. See the console output for more details. Possible conflicts:
--conflicts Conflict resolved in build OMERO-python-superbuild-push#404. See the console output for more details.
# requests timeout, default is no timeout
# * https://requests.readthedocs.io/en/master/user/quickstart/#timeouts
#
DEFAULT_TIMEOUT = 6.0
reads oddly contradictorily but perhaps it makes sense?
No test failure today merging
CentOS 7 ships with version 1.0.2k of OpenSSL. These versions of OpenSSL had various forms of global state that the Ice developers decided, likely for a very good reason, to cleanup when the Ice OpenSSL engine is destroyed:
Unfortunately, calling
EVP_Cleanup()
like this causes the global algorithms table to end up missing and/or corrupt:This will break other uses of OpenSSL in the same process. The most obvious condition where this can occur is making an HTTPS request after an OMERO session has been closed. For example (Ubuntu 16.04, OpenSSL 1.0.2g):
The easiest way to work around this is to bring
pyopenssl
, which is linked against a version of OpenSSL we control, into the equation. In order to have both OpenSSL versions functional in the process we need to use a Python package that is mindful of these conditions and will optionally usepyopenssl
if it is available.requests
is such a package. Usingrequests
withpyopenssl
installed this should be your output:This PR makes changes to the usage of
urllib
in the library to userequests
instead.