]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sock_inet: report the errno string in binding errors
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Sep 2020 06:32:17 +0000 (08:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Sep 2020 06:32:17 +0000 (08:32 +0200)
commit36722d2274127ef91959296bb5299c8120b16ce7
tree7cd7789c15bd01854564ad0c9743ed8e1a6f4566
parenteb8cfe672310c3beb697da77bb6328de144b3704
MINOR: sock_inet: report the errno string in binding errors

With the socket binding code cleanup it becomes easy to add more info to
error messages. One missing thing used to be the error string, which is
now added after the generic one, for example:

  [ALERT] 260/082852 (12974) : Starting frontend f: cannot bind socket (Permission denied) [0.0.0.0:4]
  [ALERT] 260/083053 (13292) : Starting frontend f: cannot bind socket (Address already in use) [0.0.0.0:4444]
  [ALERT] 260/083104 (13298) : Starting frontend f: cannot bind socket (Cannot assign requested address) [1.1.1.1:4444]
src/sock_inet.c