diff options
author | Marek VavruĊĦa <mvavrusa@cloudflare.com> | 2018-04-06 18:32:17 +0200 |
---|---|---|
committer | Grigorii Demidov <grigorii.demidov@nic.cz> | 2018-11-13 13:00:24 +0100 |
commit | eb84784cc33f564b764a1fc73f8e0e4955809e53 (patch) | |
tree | a5963992a9eb9c420340f934840b7a0a0936e81f /daemon/network.h | |
parent | Merge !695: two new EDNS modules, new layer (diff) | |
download | knot-resolver-eb84784cc33f564b764a1fc73f8e0e4955809e53.tar.xz knot-resolver-eb84784cc33f564b764a1fc73f8e0e4955809e53.zip |
network: make TCP_BACKLOG_DEFAULT a compile time define and set to default
This was previously hardcoded to 16. This makes it at least a compile time
define, with a default of 511 (as that's what Redis and Apache use).
Diffstat (limited to 'daemon/network.h')
-rw-r--r-- | daemon/network.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/network.h b/daemon/network.h index cc7f2785..07d84adc 100644 --- a/daemon/network.h +++ b/daemon/network.h @@ -55,9 +55,10 @@ struct network { map_t tls_client_params; struct tls_session_ticket_ctx *tls_session_ticket_ctx; struct net_tcp_param tcp; + int tcp_backlog; }; -void network_init(struct network *net, uv_loop_t *loop); +void network_init(struct network *net, uv_loop_t *loop, int tcp_backlog); void network_deinit(struct network *net); int network_listen_fd(struct network *net, int fd, bool use_tls); int network_listen(struct network *net, const char *addr, uint16_t port, uint32_t flags); |