]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: protocol: report the file and line number for binding/listening errors
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 09:55:48 +0000 (11:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 19:22:52 +0000 (21:22 +0200)
commit37de553f1d0cfd58cc3b6d5576c5b6788c8fc347
tree72039c80864680fc3dbce18e2867304ccaeef0b5
parentf78b52eb7d0f6a5f4cfe163be11b4b23113a4b37
MINOR: protocol: report the file and line number for binding/listening errors

Binding errors and late socket errors provide no information about
the file and line where the problem occurs. These are all done by
protocol_bind_all() and they only report "Starting proxy blah". Let's
change this a little bit so that:
  - the file name and line number of the faulty bind line is alwas mentioned
  - early binding errors are indicated with "Binding" instead of "Starting".

Now we can for example have this:
  [WARNING]  (18580) : Binding [binderr.cfg:10] for proxy http: cannot bind receiver to device 'eth2' (No such device) [0.0.0.0:1080]
src/protocol.c