Skip to content

Commit

Permalink
mq_server: set TCP_NODELAY in socket.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfp committed Nov 11, 2010
1 parent 35e701b commit fef36b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mq_server.ml
Expand Up @@ -575,6 +575,7 @@ let server_loop ?(debug = false) broker =
let rec loop () =
(try_lwt
lwt (fd, addr) = Lwt_unix.accept broker.b_socket in
Lwt_unix.setsockopt fd Unix.TCP_NODELAY true;
ignore_result (establish_connection broker fd) addr;
return ()
with e ->
Expand Down

0 comments on commit fef36b6

Please sign in to comment.