]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/ocaml-http/examples/dont_fork.ml
bug fix: reset timeout after processing request in Tcp_server.simple
[helm.git] / helm / DEVEL / ocaml-http / examples / dont_fork.ml
index 8d8eb45ccdec087789e8017d5b74f4875fc96031..a64e661d045528177a8c69d6136ca8bc66697164 100644 (file)
@@ -20,9 +20,6 @@
 *)
 
 let callback req outchan =
-  output_string outchan "FOO\n";
-  flush outchan;
-  Unix.sleep 5;
   Http_daemon.respond_error ~body:"AH AH AH :-P" outchan
 in
-Http_daemon.start' ~port:9999 ~fork:false callback
+Http_daemon.start' ~port:9999 ~fork:false ~timeout:(Some 5) callback