mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
Stop listening after accept loop
This commit is contained in:
parent
6560d4b865
commit
60dc366bd2
1 changed files with 1 additions and 0 deletions
|
|
@ -973,6 +973,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;
|
||||
());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue