daemon/worker: fix missed collection of statistics when data is sended over TLS

18 jobs for <span class="ref-name">tls-statistic</span> in 8 minutes and 4 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #129595
docker linux amd64
build:clang:linux:amd64

00:00:40

passed #129594
docker linux amd64
build:linux:amd64

00:00:38

passed #129596
docker linux amd64 allowed to fail
srpm

00:00:27

 
  Test
passed #129603
docker linux amd64
deckard:linux:amd64

00:06:52

passed #129610
privileged
distro:epel-7

00:03:18

passed #129609
privileged
distro:fedora-27

00:04:18

passed #129602
docker
doc

00:01:05

passed #129601
docker linux amd64
installcheck:linux:amd64

00:01:13

passed #129604
docker linux amd64
installcheck:valgrind:linux:amd64

00:01:54

passed #129598
docker
lint:c

00:02:32

failed #129599
docker allowed to fail
lint:clang-scan-build

00:01:22

passed #129597
docker
lint:lua

00:00:47

passed #129607
docker linux amd64
respdiff:iter:tcp:linux:amd64

00:02:29

passed #129608
docker linux amd64
respdiff:iter:tls:linux:amd64

00:02:31

passed #129606
docker linux amd64
respdiff:iter:udp:linux:amd64

00:03:13

passed #129600
docker linux amd64
test:linux:amd64

00:01:35

passed #129605
docker linux amd64
test:linux:amd64:valgrind

00:01:07

 
  Coverage
passed #129611
docker linux amd64
coverage

00:00:26

71.7%
 
Name Stage Failure
failed
lint:clang-scan-build Test
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
CCLD daemon/kresd
scan-build: 28 bugs found.
scan-build: Run 'scan-view /builds/knot/knot-resolver/scan-results/2018-04-13-135103-13-1' to examine bug reports.
Uploading artifacts...
scan-results: found 33 matching files
Uploading artifacts to coordinator... ok id=129599 responseStatus=201 Created token=z5SiX7bY
ERROR: Job failed: exit code 1