mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
perf: use TCP_NODELAY for client sockets
(work with @vphantom)
This commit is contained in:
parent
832c4bd4df
commit
6070b36955
1 changed files with 1 additions and 0 deletions
|
|
@ -930,6 +930,7 @@ module Unix_tcp_server_ = struct
|
|||
Sem_.acquire 1 self.sem_max_connections;
|
||||
try
|
||||
let client_sock, _ = Unix.accept sock in
|
||||
Unix.setsockopt client_sock Unix.TCP_NODELAY true;
|
||||
self.new_thread (fun () ->
|
||||
try
|
||||
handle_client_unix_ client_sock;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue