Re: [Ryu-devel] How to creat new thread in RYU

2015-07-26 Thread Vinllen Chen
reads to continue. And it works. > You probably could try it. > > Best Regards > Haixiang YANG > > -- > Date: Fri, 24 Jul 2015 10:33:53 +0800 > From: [email protected] > To: [email protected]; [email protected]; > iwase.yusu..

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-24 Thread 杨haixiang
: [email protected]; [email protected]; [email protected] Subject: Re: [Ryu-devel] How to creat new thread in RYU Dear iwase : Thankyou, so do you have any other idea to solve this problem. I found this problem could not be solved even when i use epoll which is not a blocking I

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Yusuke Iwase
Hi, On 2015年07月24日 11:33, Vinllen Chen wrote: > Dear iwase : > > Thankyou, so do you have any other idea to solve this problem. I found this > problem could not be solved even when i use epoll which is not a blocking I/O. How about using the thread pool of eventlet when run "read"? http://eve

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Vinllen Chen
Dear iwase : Thankyou, so do you have any other idea to solve this problem. I found this problem could not be solved even when i use epoll which is not a blocking I/O. On Fri, Jul 24, 2015 at 7:51 AM, Yusuke Iwase wrote: > Hi, > > On 2015年07月23日 17:21, Vinllen Chen wrote: > > Hi, Haixiang and i

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Yusuke Iwase
Hi, On 2015年07月23日 17:21, Vinllen Chen wrote: > Hi, Haixiang and iwase : > > Hear comes my code : > class Main(app_manager.RyuApp) : > > def __init__(self, *args, **kwargs): > > def start(self) : > super(Main, self).start() > self.threads.append(hub.s

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Vinllen Chen
Hi, Haixiang and iwase : Hear comes my code : class Main(app_manager.RyuApp) : def __init__(self, *args, **kwargs): def start(self) : super(Main, self).start() self.threads.append(hub.spawn(Tun_Tap())) # call Tun_Tap class class Tun_Tap() : def __

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Yusuke Iwase
Hi, On 2015年07月23日 16:18, Vinllen Chen wrote: > Hi, Dear all: > > I want to create a new thread/coroutine in RYU app, i find it's not ok to > write the code below: > > class App(app_manager.RyuApp) : > def __init__(self, *args, **kwargs): > ... > hub.spawn(New_One()) What m

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread 杨haixiang
-devel] How to creat new thread in RYU Hi, Dear all: I want to create a new thread/coroutine in RYU app, i find it's not ok to write the code below: class App(app_manager.RyuApp) :def __init__(self, *args, **kwargs): ...hub.spawn(New_One()) -- Best Regards,Vi

[Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Vinllen Chen
Hi, Dear all: I want to create a new thread/coroutine in RYU app, i find it's not ok to write the code below: class App(app_manager.RyuApp) : def __init__(self, *args, **kwargs): ... hub.spawn(New_One()) -- Best Regards, Vinllen --