parent
5c39f58edf
commit
619f4dee07
|
@ -405,15 +405,6 @@ CONNECTION_METHOD = {
|
|||
}
|
||||
|
||||
|
||||
class Broker(mitogen.master.Broker):
|
||||
"""
|
||||
WorkerProcess maintains at most 2 file descriptors, therefore does not need
|
||||
the exuberant syscall expense of EpollPoller, so override it and restore
|
||||
the poll() poller.
|
||||
"""
|
||||
poller_class = mitogen.core.Poller
|
||||
|
||||
|
||||
class CallChain(mitogen.parent.CallChain):
|
||||
"""
|
||||
Extend :class:`mitogen.parent.CallChain` to additionally cause the
|
||||
|
|
|
@ -294,6 +294,15 @@ def get_cpu_count(default=None):
|
|||
return cpu_count
|
||||
|
||||
|
||||
class Broker(mitogen.master.Broker):
|
||||
"""
|
||||
WorkerProcess maintains at most 2 file descriptors, therefore does not need
|
||||
the exuberant syscall expense of EpollPoller, so override it and restore
|
||||
the poll() poller.
|
||||
"""
|
||||
poller_class = mitogen.core.Poller
|
||||
|
||||
|
||||
class Binding(object):
|
||||
"""
|
||||
Represent a bound connection for a particular inventory hostname. When
|
||||
|
@ -530,7 +539,7 @@ class ClassicWorkerModel(WorkerModel):
|
|||
See WorkerModel.get_binding().
|
||||
"""
|
||||
if self.broker is None:
|
||||
self.broker = mitogen.master.Broker()
|
||||
self.broker = Broker()
|
||||
|
||||
path = self._listener_for_name(inventory_name)
|
||||
if path != self.listener_path:
|
||||
|
|
Loading…
Reference in New Issue