add connection_strategy option

This commit is contained in:
Maximilian Hils 2017-08-15 14:04:28 +02:00
parent 8a66217daa
commit 3efcba777f

View File

@ -58,6 +58,13 @@ class Proxyserver:
self.options = None
self._lock = asyncio.Lock()
def load(self, loader):
loader.add_option(
"connection_strategy", str, "eager",
"Determine when server connections should be established.",
choices=("eager", "lazy")
)
def running(self):
self.options = ctx.options
self.event_queue = ctx.master.event_queue