haproxy/include/types
Robert Tsai 81ae1953bf [MEDIUM] add support for logging via a UNIX socket
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.
2007-12-05 10:47:29 +01:00
..
acl.h [MEDIUM] acl: support '-i' to ignore case when matching 2007-06-17 08:20:33 +02:00
backend.h [CLEANUP] fwrr: ensure that we never overflow in placements 2007-12-02 11:01:23 +01:00
buffers.h [BUG] do not re-arm read timeout after writing data 2007-06-03 16:03:49 +02:00
capture.h [MAJOR] last bunch of capture changes for mempool v2 2007-05-13 22:46:04 +02:00
client.h
fd.h [MAJOR] added generic protocol support 2007-10-18 14:11:12 +02:00
global.h [MEDIUM] add support for logging via a UNIX socket 2007-12-05 10:47:29 +01:00
hdr_idx.h
httperr.h
log.h [MEDIUM] add support for logging via a UNIX socket 2007-12-05 10:47:29 +01:00
polling.h [MAJOR] introduced speculative I/O with epoll() 2007-04-16 00:53:59 +02:00
proto_http.h [MEDIUM] acl: implement matching on header values 2007-06-10 19:45:56 +02:00
protocols.h [MAJOR] added a new state to listeners 2007-11-04 22:42:48 +01:00
proxy.h [MEDIUM] add support for logging via a UNIX socket 2007-12-05 10:47:29 +01:00
queue.h [MAJOR] ported pendconn to mempools v2 2007-05-13 20:19:55 +02:00
server.h [STATS] report the number of times each server was selected 2007-12-05 10:34:49 +01:00
session.h [MEDIUM] implement the CSV output for the statistics 2007-10-18 14:12:28 +02:00
task.h [MAJOR] migrated task, tree64 and session to pool2 2007-05-13 19:43:47 +02:00
template.h