Merge "Allow multiple reader/writers to UDP DNS Sockets"

This commit is contained in:
Jenkins 2015-07-16 12:18:52 +00:00 committed by Gerrit Code Review
commit 9cb35edec7

View File

@ -25,6 +25,7 @@ import time
import six
import eventlet.wsgi
import eventlet.debug
import oslo_messaging as messaging
from oslo_config import cfg
from oslo_log import log as logging
@ -235,6 +236,13 @@ class DNSService(object):
"""
DNS Service mixin used by all Designate DNS Services
"""
def __init__(self, *args, **kwargs):
super(DNSService, self).__init__(*args, **kwargs)
# Eventet will complain loudly about our use of multiple greentheads
# reading/writing to the UDP socket at once. Disable this warning.
eventlet.debug.hub_prevent_multiple_readers(False)
@abc.abstractproperty
def _dns_application(self):
pass