X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Fdont_fork.ml;h=d0e1d91e61531ce49d7fefb774a4348801932915;hb=5325734bc2e4927ed7ec146e35a6f0f2b49f50c1;hp=8d8eb45ccdec087789e8017d5b74f4875fc96031;hpb=697d0d8857366485238a67386d0ce8f18404ac42;p=helm.git diff --git a/helm/DEVEL/ocaml-http/examples/dont_fork.ml b/helm/DEVEL/ocaml-http/examples/dont_fork.ml index 8d8eb45cc..d0e1d91e6 100644 --- a/helm/DEVEL/ocaml-http/examples/dont_fork.ml +++ b/helm/DEVEL/ocaml-http/examples/dont_fork.ml @@ -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 + Http_daemon.respond_error ~body:"AH AH AH :-P\n" outchan in -Http_daemon.start' ~port:9999 ~fork:false callback +Http_daemon.start' ~port:9999 ~mode:`Single ~timeout:(Some 5) callback