소스 검색

change concurrency level for ocaml/tiny_httpd (#6209)

see if it affects latency
Simon Cruanes 4 년 전
부모
커밋
8cbf35a5f5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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