Skip to content

Commit

Permalink
Version 0.0.9 updates for ADLS
Browse files Browse the repository at this point in the history
This update addresses a performance issue and works around github issue:
pyca/pyopenssl#625
  • Loading branch information
begoldsm committed May 11, 2017
1 parent 47b8214 commit a1fd49b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release History
===============
0.0.9 (2017-05-09)
------------------
* Enforce basic SSL utilization to ensure performance due to `GitHub issue 625 <https://github.com/pyca/pyopenssl/issues/625>`

0.0.8 (2017-04-26)
------------------
* Fix server-side throttling retry support. This is not a guarantee that if the server is throttling the upload (or download) it will eventually succeed, but there is now a back-off retry in place to make it more likely.
Expand Down
2 changes: 1 addition & 1 deletion azure/datalake/store/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# license information.
# --------------------------------------------------------------------------

__version__ = "0.0.8"
__version__ = "0.0.9"

from .core import AzureDLFileSystem
from .multithread import ADLDownloader
Expand Down
15 changes: 15 additions & 0 deletions azure/datalake/store/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@
import requests
import requests.exceptions

# this is required due to github issue, to ensure we don't lose perf from openPySSL: https://github.com/pyca/pyopenssl/issues/625
enforce_no_py_open_ssl = None
try:
from requests.packages.urllib3.contrib.pyopenssl import extract_from_urllib3 as enforce_no_py_open_ssl
except ImportError:
# in the case of debian/ubuntu system packages, the import is slightly different
try:
from urllib3.contrib.pyopenssl import extract_from_urllib3 as enforce_no_py_open_ssl
except ImportError:
# if OpenSSL is unavailable in both cases then there is no need to "undo" it.
pass

if enforce_no_py_open_ssl:
enforce_no_py_open_ssl()

from msrest.authentication import Authentication
from .exceptions import DatalakeBadOffsetException, DatalakeRESTException
from .exceptions import FileNotFoundError, PermissionError
Expand Down

0 comments on commit a1fd49b

Please sign in to comment.