X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fdaemons%2Fuwobo%2Fuwobo.ml;h=167dc04f89d3978d52045779938f56fce9919e19;hb=47a745462a714af9d65cea7b61af56524bd98fa1;hp=7b8a20954f973743eb9a57351d45ce55a8b26124;hpb=e90493d6e2e17bb1cb4edb498b24ccdd3b597b86;p=helm.git diff --git a/helm/software/daemons/uwobo/uwobo.ml b/helm/software/daemons/uwobo/uwobo.ml index 7b8a20954..167dc04f8 100644 --- a/helm/software/daemons/uwobo/uwobo.ml +++ b/helm/software/daemons/uwobo/uwobo.ml @@ -481,7 +481,7 @@ let callback let xmluri = req#param "xmluri" in let keys = Pcre.split ~pat:"," (req#param "keys") in (* notation: "local" parameters are those defined on a per-stylesheet - pasis (i.e. param.key.param=value), "global" parameters are those + basis (i.e. param.key.param=value), "global" parameters are those defined for all stylesheets (i.e. param.param=value) *) let (user_params, props) = parse_apply_params req#params in let profile_params = @@ -566,13 +566,6 @@ let callback return_error ("Uncaught exception: " ^ (Printexc.to_string exc)) outchan ;; -let callback - ~syslogger ~styles ~cmd_pipe ~res_pipe () (req: Http_types.request) outchan -= - HExtlib.finally - (fun () -> try close_out outchan with Sys_error _ -> ()) - (callback ~syslogger ~styles ~cmd_pipe ~res_pipe () req) outchan - (* UWOBO's startup *) let main () = (* (1) system logger *) @@ -809,7 +802,11 @@ let main () = requests until it will get killed by father *) let d_spec = Http_daemon.daemon_spec ~port ~mode:`Fork - ~callback:(callback ~syslogger ~styles ~cmd_pipe ~res_pipe ()) () + ~callback:(callback ~syslogger ~styles ~cmd_pipe ~res_pipe ()) + ~auto_close:true +(* FG: we set a timeout of 900 secs, which is the default of wget *) +(* : 300 secs is too short for some proofs like pr0_confluence.con.body *) + ~timeout:(Some 900) () in Http_daemon.main d_spec | _ (* < 0 *) -> (* fork failed :-((( *)