MEDIUM: dumpstats: make stats_tlskeys_list() yield-aware during tls-keys dump
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Jun 2016 16:58:55 +0000 (18:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Jun 2016 17:42:08 +0000 (19:42 +0200)
commit72a8a18e89ec39ecb31d2f92ff0ee01bc9035f01
tree77340750446a0594d79772b9c713e842242eeaf4
parentcf9e78879008ee3ec1777fa2d0b45661acbb9380
MEDIUM: dumpstats: make stats_tlskeys_list() yield-aware during tls-keys dump

The previous dump algorithm was not trying to yield when the buffer is
full, it's not a problem with the TLS_TICKETS_NO which is 3 by default
but it can become one if the buffer size is lowered and if the
TLS_TICKETS_NO is increased.

The index of the latest ticket dumped is now stored to ensure we can
resume the dump after a yield.
include/types/applet.h
src/dumpstats.c