mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-11 14:53:05 -05:00
The code in haproxy-1.3.13.1 only supports syslogging to an internet address. The attached patch: - Adds support for syslogging to a UNIX domain socket (e.g., /dev/log). If the address field begins with '/' (absolute file path), then AF_UNIX is used to construct the socket. Otherwise, AF_INET is used. - Achieves clean single-source build on both Mac OS X and Linux (sockaddr_in.sin_len and sockaddr_un.sun_len field aren't always present). For handling sendto() failures in send_log(), it appears that the existing code is fine (no need to close/recreate socket) for both UDP and UNIX-domain syslog server. So I left things alone (did not close/recreate socket). Closing/recreating socket after each failure would also work, but would lead to increased amount of unnecessary socket creation/destruction if syslog is temporarily unavailable for some reason (especially for verbose loggers). Please consider this patch for inclusion into the upstream haproxy codebase. |
||
|---|---|---|
| .. | ||
| appsession.h | ||
| base64.h | ||
| cfgparse.h | ||
| compat.h | ||
| config.h | ||
| debug.h | ||
| defaults.h | ||
| eb32tree.h | ||
| eb64tree.h | ||
| ebpttree.h | ||
| ebtree.h | ||
| epoll.h | ||
| errors.h | ||
| memory.h | ||
| mini-clist.h | ||
| rbtree.h | ||
| regex.h | ||
| sessionhash.h | ||
| standard.h | ||
| template.h | ||
| time.h | ||
| tools.h | ||
| uri_auth.h | ||
| version.h | ||