Skip to content
Snippets Groups Projects
Commit e99ad387 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

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

parents a1f3feef 5aeb4c76
No related branches found
No related tags found
1 merge request!556daemon/worker: fix missed collection of statistics when data is sended over TLS
Pipeline #
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment