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/io.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/io.h')
-rw-r--r-- | daemon/io.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/io.h b/daemon/io.h index c81b1c99..34e33fcc 100644 --- a/daemon/io.h +++ b/daemon/io.h @@ -27,10 +27,10 @@ struct tls_client_ctx_t; int udp_bind(uv_udp_t *handle, struct sockaddr *addr); int udp_bindfd(uv_udp_t *handle, int fd); -int tcp_bind(uv_tcp_t *handle, struct sockaddr *addr); -int tcp_bind_tls(uv_tcp_t *handle, struct sockaddr *addr); -int tcp_bindfd(uv_tcp_t *handle, int fd); -int tcp_bindfd_tls(uv_tcp_t *handle, int fd); +int tcp_bind(uv_tcp_t *handle, struct sockaddr *addr, int tcp_backlog); +int tcp_bind_tls(uv_tcp_t *handle, struct sockaddr *addr, int tcp_backlog); +int tcp_bindfd(uv_tcp_t *handle, int fd, int tcp_backlog); +int tcp_bindfd_tls(uv_tcp_t *handle, int fd, int tcp_backlog); void tcp_timeout_trigger(uv_timer_t *timer); /** Initialize the handle, incl. ->data = struct session * instance. |