vmmd: failure semantics of stats socket the same as others (raise exception), no silent dropping of statistics
This commit is contained in:
parent
d9f8f10b04
commit
54179f55fc
|
@ -180,7 +180,7 @@ let rec read_stats state s =
|
||||||
| Error _ ->
|
| Error _ ->
|
||||||
Logs.err (fun m -> m "exception while reading stats") ;
|
Logs.err (fun m -> m "exception while reading stats") ;
|
||||||
Lwt.catch (fun () -> Lwt_unix.close s) (fun _ -> Lwt.return_unit) >|= fun () ->
|
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) ->
|
| Ok (hdr, data) ->
|
||||||
let state', outs = Vmm_engine.handle_stat !state hdr data in
|
let state', outs = Vmm_engine.handle_stat !state hdr data in
|
||||||
state := state' ;
|
state := state' ;
|
||||||
|
|
Loading…
Reference in a new issue