From 54179f55fc5bf24830c5c5df63270f4e5fae5cf6 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Tue, 3 Apr 2018 22:49:50 +0200 Subject: [PATCH] vmmd: failure semantics of stats socket the same as others (raise exception), no silent dropping of statistics --- app/vmmd.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmmd.ml b/app/vmmd.ml index 8d40174..f4cda54 100644 --- a/app/vmmd.ml +++ b/app/vmmd.ml @@ -180,7 +180,7 @@ let rec read_stats state s = | Error _ -> Logs.err (fun m -> m "exception while reading stats") ; Lwt.catch (fun () -> Lwt_unix.close s) (fun _ -> Lwt.return_unit) >|= fun () -> - state := { !state with Vmm_engine.stats_socket = None } + invalid_arg "stat socket communication issue" | Ok (hdr, data) -> let state', outs = Vmm_engine.handle_stat !state hdr data in state := state' ;