Commit e99ad387 authored by Vladimír Čunát's avatar Vladimír Čunát

Merge !556: daemon/worker: fix missed statistics for TLS writes

parents a1f3feef 5aeb4c76
......@@ -947,6 +947,12 @@ ssize_t worker_gnutls_push(gnutls_transport_ptr_t h, const void *buf, size_t len
worker->too_many_open = false;
}
ret = len;
struct sockaddr *addr = &t->session->peer.ip;
worker->stats.tcp += 1;
if (addr->sa_family == AF_INET6)
worker->stats.ipv6 += 1;
else if (addr->sa_family == AF_INET)
worker->stats.ipv4 += 1;
} else {
VERBOSE_MSG(NULL,"[%s] uv_write: %s\n",
t->client_side ? "tls-client" : "tls", uv_strerror(res));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment