Browse Source

change concurrency level for ocaml/tiny_httpd (#6209)

see if it affects latency
Simon Cruanes 4 years ago
parent
commit
8cbf35a5f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/OCaml/tiny_httpd/src/src/bin/tiny.ml

+ 1 - 1
frameworks/OCaml/tiny_httpd/src/src/bin/tiny.ml

@@ -1,7 +1,7 @@
 module S = Tiny_httpd
 
 let () =
-  let server = S.create ~addr:"0.0.0.0" () in
+  let server = S.create ~addr:"0.0.0.0" ~max_connections:256 () in
   let headers = [ ("Server", "tiny_httpd") ] in
   (* say hello *)
   S.add_route_handler ~meth:`GET server