Thank you for the patch. This does appear to resolve the issue.
On Thu, Oct 1, 2015 at 8:11 AM, Dragan Dosen <ddo...@haproxy.com> wrote: > Hi all, > > On 29.09.2015 19:31, Willy Tarreau wrote: > >> > >> Maybe, we should build a defaults strings (one for each rfc) at the > >> start of haproxy, and uses these default strings if the proxy "*p" is > >> NULL in the function "__send_log()" ? > > > > Yes indeed we should have one of each, statically defined in log.c with > > the global log tag I guess. In fact this would even allow not to allocate > > one tag per proxy since we'd be able to reuse the global one when a proxy > > defines no log-tag. > > > > I've managed to fix this problem by using individual vectors instead of > the pre-generated strings, log_htp and log_htp_rfc5424. > > This should also resolve another problem related to "pid" in > log_htp(_rfc5424), when haproxy is started in daemon/systemd mode. > > The patch is in attachment. > > > Best regards, > Dragan Dosen > >