remove redundant setsocketopt
This commit is contained in:
parent
cac7a091fe
commit
50d27b7cd9
|
@ -19,8 +19,6 @@ let bind_server
|
|||
~(listen_backlog : int)
|
||||
: fd Lwt.t =
|
||||
let fd = Lwt_unix.socket PF_INET SOCK_STREAM 0 in
|
||||
Lwt_unix.setsockopt fd SO_KEEPALIVE false;
|
||||
Lwt_unix.setsockopt fd SO_REUSEPORT false;
|
||||
let srv_adr = Unix.ADDR_INET (Unix.inet_addr_any, port) in
|
||||
let* () = Lwt_unix.bind fd srv_adr in
|
||||
Lwt_unix.listen fd listen_backlog;
|
||||
|
|
Loading…
Reference in New Issue