Disabling flushing oddly improves latency as well as throughput?
This commit is contained in:
parent
3ec664d922
commit
f8bfb0e9dd
2
relay.ml
2
relay.ml
|
@ -61,7 +61,7 @@ let issue_banner cin cout =
|
|||
let relay_boot (peername, cin, cout) = return (peername, Lwt_mutex.create (), cin, cout)
|
||||
|
||||
let relay_handler (_, mtx, _, cout) _ m =
|
||||
Lwt_mutex.with_lock mtx (fun () -> output_sexp_and_flush cout m)
|
||||
Lwt_mutex.with_lock mtx (fun () -> output_sexp cout m)
|
||||
|
||||
let relay_mainloop (peername, mtx, cin, cout) n =
|
||||
let write_sexp sexp = Lwt_mutex.with_lock mtx (fun () -> output_sexp cout sexp) in
|
||||
|
|
Loading…
Reference in New Issue