Stop listening after accept loop

This commit is contained in:
Stéphane Lavergne 2023-08-07 10:49:04 -04:00
parent 6560d4b865
commit 60dc366bd2

View file

@ -973,6 +973,7 @@ module Unix_tcp_server_ = struct
done; done;
(* Wait for all threads to be done: this only works if all threads are done. *) (* Wait for all threads to be done: this only works if all threads are done. *)
Unix.close sock;
Sem_.acquire self.sem_max_connections.max self.sem_max_connections; Sem_.acquire self.sem_max_connections.max self.sem_max_connections;
()); ());
} }