RPCs: fix node crash on SSL write error

This commit is contained in:
Vincent Bernardoff 2017-06-02 18:19:28 +02:00 committed by Benjamin Canou
parent 591f11a808
commit 35792ccc37

View File

@ -126,6 +126,7 @@ let () =
let old_hook = !Lwt.async_exception_hook in
Lwt.async_exception_hook := function
| Ssl.Read_error _ -> ()
| Ssl.Write_error _ -> ()
| exn -> old_hook exn
let init_rpc (rpc_config: Node_config_file.rpc) node =