mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 05:46:10 +02:00
limit the size of ryu app's event queue
otherwise a queue grows too long and consumes much memory on load. the size used in this commit (128) is arbitrary. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
fe6f94434c
commit
71aa062c49
@ -60,7 +60,7 @@ class RyuApp(object):
|
||||
self.event_handlers = {}
|
||||
self.observers = {}
|
||||
self.threads = []
|
||||
self.events = hub.Queue()
|
||||
self.events = hub.Queue(128)
|
||||
self.replies = hub.Queue()
|
||||
self.logger = logging.getLogger(self.name)
|
||||
self.threads.append(hub.spawn(self._event_loop))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user