X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Fdont_fork.ml;h=f053554963195f0342b197ad528ac4a0f8bec0ce;hb=3bb4ce11fb9d4c6375483a80344beb94c4517dd7;hp=a64e661d045528177a8c69d6136ca8bc66697164;hpb=9ccf0bcd417b78840b52662465a6aafa0819ad27;p=helm.git diff --git a/helm/DEVEL/ocaml-http/examples/dont_fork.ml b/helm/DEVEL/ocaml-http/examples/dont_fork.ml index a64e661d0..f05355496 100644 --- a/helm/DEVEL/ocaml-http/examples/dont_fork.ml +++ b/helm/DEVEL/ocaml-http/examples/dont_fork.ml @@ -2,7 +2,7 @@ (* OCaml HTTP - do it yourself (fully OCaml) HTTP daemon - Copyright (C) <2002> Stefano Zacchiroli + Copyright (C) <2002-2004> Stefano Zacchiroli This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,6 @@ *) let callback req outchan = - 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 ~timeout:(Some 5) callback +Http_daemon.start' ~port:9999 ~mode:`Single ~timeout:(Some 5) callback