diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-19 04:25:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-19 04:25:34 +0200 |
commit | 6cf6bbc2682c6df010d64ea7e49d93affa7282cd (patch) | |
tree | 510fd14e79d61bcf6f9628113c38de7d219f8671 /src/socket.h | |
parent | a3d4e06dfa234bf2a9398c8e534b705b68aa50a1 (diff) |
socket: enforce limit on number of concurrent connections
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h index 5a2cd06d9d..31b3870ef6 100644 --- a/src/socket.h +++ b/src/socket.h @@ -103,6 +103,8 @@ struct Socket { bool accept; unsigned n_accepted; + unsigned n_connections; + unsigned max_connections; bool failure; Watch timer_watch; @@ -118,6 +120,9 @@ void socket_notify_service_dead(Socket *s); * any of the sockets of this socket */ int socket_add_one_mount_link(Socket *s, Mount *m); +/* Called from the service code when a per-connection service ended */ +void socket_connection_unref(Socket *s); + extern const UnitVTable socket_vtable; const char* socket_state_to_string(SocketState i); |