hi, > Hello, > > I run two ryu apps, say A and B. B instantiates a StreamServer and calls > serve_forever() > Then I find that B blocks both A and B when there're no incoming connections. > Is this the intended behaviour of serve_forever()?
how does B instantiate a StreamServer? at least RyuApp.__init__ should not block forever. > If so, I'm considering using threading module and put StreamServer into > another thread. Then in this scenario, would ryu's event mechanism work well? hub.spawn should work. the current practice for such a thread is to call some RyuApp's methods which generates events. it's something i want to change, though. YAMAMOTO Takashi > > > > Thanks, > Can Zhang > > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
