^ " type")))
req outchan
-let callback dbd (req: Http_types.request) outchan =
+let callback (dbd, (req: Http_types.request), outchan) =
try
debug_print (sprintf "Received request: %s" req#path);
(match req#path with
let msg = MooglePp.pp_error "Uncaught exception" exn_string in
send_results (`Error msg) req outchan
+let callback dbd req ch =
+ HExtlib.finally
+ (fun () -> try close_out ch with Sys_error _ -> ())
+ callback (dbd, req, ch)
+
let restore_environment () =
match
Helm_registry.get_opt Helm_registry.string "search_engine.environment_dump"