Re: [Ryu-devel] Sometimes get event lost

2017-02-12 Thread Iwase Yusuke
Hi Yiwen, IIRC, "EVENT LOST" messages will be output when the receiver application name of the event could not be found in "SERVICE_BRICKS" dictionary. "SERVICE_BRICKS" stores the receiver application name to the event sender application. e.g.) simple_switch_13.py SERVICE_BRICKS={'SimpleSwitch

Re: [Ryu-devel] Sometimes get event lost

2017-02-12 Thread Yiwen Shen
Hi, Yes I mean the debug log message that says EVENT LOST when I use the --verbose option. My code has a traffic request arrive and this causes events to be sent between different apps to handle this request. The issue I'm facing is that sometimes I get the event lost message so the code doesn't

Re: [Ryu-devel] Sometimes get event lost

2017-02-12 Thread Iwase Yusuke
Hi Yiwen, What does "lost" exactly mean? You mean: - Getting the following debug log message when some events occurred. https://github.com/osrg/ryu/blob/master/ryu/base/app_manager.py#L317-L318 - Your event handler was not called when interested events occurred. or else? Thanks, Iwase On 201

[Ryu-devel] Sometimes get event lost

2017-02-10 Thread Yiwen Shen
Hi, In my system, I am using send_event to send events around some Ryu apps and each time I run it, sometimes the events succeed but most of the time one of the events are lost. I have tried using hub.sleep(1) at the beginning but it doesn't make it any better. 80% of the time the code cannot reac