File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -129,15 +129,13 @@ let advertise_t _common_options_t proxy_socket =
129129 let buffer = Bytes. make (String. length token) '\000' in
130130 let io_vector = Lwt_unix.IO_vectors. create () in
131131 Lwt_unix.IO_vectors. append_bytes io_vector buffer 0 (Bytes. length buffer) ;
132- Lwt_unix.Versioned. recv_msg_2 ~socket: fd ~io_vectors: io_vector
133- >> = fun (n , fds ) ->
132+ Lwt_unix. recv_msg ~socket: fd ~io_vectors: io_vector >> = fun (n , fds ) ->
134133 List. iter Unix. close fds ;
135134 let token' = Bytes. sub buffer 0 n in
136135 let io_vector' = Lwt_unix.IO_vectors. create () in
137136 Lwt_unix.IO_vectors. append_bytes io_vector' token' 0 (Bytes. length token') ;
138137 if token = Bytes. to_string token' then
139- Lwt_unix.Versioned. send_msg_2 ~socket: fd ~io_vectors: io_vector'
140- ~fds: [proxy_socket]
138+ Lwt_unix. send_msg ~socket: fd ~io_vectors: io_vector' ~fds: [proxy_socket]
141139 >> = fun _ -> return ()
142140 else
143141 return ()
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ depends: [
1717 "cohttp"
1818 "fd-send-recv"
1919 "logs"
20- "lwt"
20+ "lwt" {>= "5.0.0"}
2121 "message-switch-core"
2222 "message-switch-unix"
2323 "mtime"
You can’t perform that action at this time.
0 commit comments