Commit 03251b8d authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fixed: cpu is working too hard

parent f1c8a60e
...@@ -84,7 +84,7 @@ impl ControllerFrame13 for Controller13 { ...@@ -84,7 +84,7 @@ impl ControllerFrame13 for Controller13 {
match_fields, match_fields,
&actions, &actions,
packetin.table_id, packetin.table_id,
Some(buf_id as u32), Some(buf_id),
stream, stream,
); );
return; return;
......
...@@ -27,7 +27,7 @@ pub fn tcp_listener_handler( ...@@ -27,7 +27,7 @@ pub fn tcp_listener_handler(
ctrl.request_handler(&mut buffer, &mut stream); ctrl.request_handler(&mut buffer, &mut stream);
} }
Ok(_) => { Ok(_) => {
continue; break;
} }
Err(_) => { Err(_) => {
println!("cannot read packet"); println!("cannot read packet");
......
...@@ -27,7 +27,7 @@ pub fn tcp_listener_handler( ...@@ -27,7 +27,7 @@ pub fn tcp_listener_handler(
ctrl.request_handler(&mut buffer, &mut stream); ctrl.request_handler(&mut buffer, &mut stream);
} }
Ok(_) => { Ok(_) => {
continue; break;
} }
Err(_) => { Err(_) => {
println!("cannot read packet"); println!("cannot read packet");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment