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 <[email protected]> --- ryu/base/app_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 5d241ce..173e35c 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -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)) -- 1.8.0.1 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
