Skip to content

Commit e07264e

Browse files
committed
activity: record activity on echo reply
1 parent 6dd14e0 commit e07264e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

async/Async_OpenFlowChunk.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,11 @@ module Controller = struct
271271
* the controller.
272272
* *)
273273
>>| (function _ -> [])
274-
else if hdr.Header.type_code = type_code_echo_reply then
275-
(* Echo replies get eaten *)
274+
else if hdr.Header.type_code = type_code_echo_reply then begin
275+
(* Echo replies get eaten, after recording activity. *)
276+
Handler.activity t c_id;
276277
return []
277-
else
278+
end else
278279
(* All other messages get forwarded *)
279280
return [evt]
280281
end

0 commit comments

Comments
 (0)