Merge "Disable eventlet monkey-patching of DNS"

This commit is contained in:
Jenkins 2015-01-19 17:45:05 +00:00 committed by Gerrit Code Review
commit d407213722

View File

@ -14,6 +14,13 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
# This must be set before the initial import of eventlet because if
# dnspython is present in your environment then eventlet monkeypatches
# socket.getaddrinfo() with an implementation which doesn't work for IPv6.
import os
os.environ['EVENTLET_NO_GREENDNS'] = 'yes'
class NotImplementedError(NotImplementedError): class NotImplementedError(NotImplementedError):
# FIXME(jd) This is used by WSME to return a correct HTTP code. We should # FIXME(jd) This is used by WSME to return a correct HTTP code. We should