Stop listening after accept loop

This commit is contained in:
Stéphane Lavergne 2023-08-07 10:49:04 -04:00 committed by Simon Cruanes
parent 1ca1f3dff9
commit a7516689b1

View file

@ -972,6 +972,7 @@ module Unix_tcp_server_ = struct
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;
());
}