Commit Graph

20 Commits

Author SHA1 Message Date
Christopher Wellons
6f621b90b1 Tweak SIGUSR1 statistics totals logging
* Don't dynamically allocate the struct since that's not necessary.
* Use a more concise log message.
* Include current clients when counting the time.
* Print final statistics message *after* closing all clients.
* Don't include total connections in ACCEPT.
* Mention SIGUSR1 in the new man page, too.

Adjusts #24.
2019-04-12 18:49:04 -04:00
Felix Kronlage
3473beb868 Gather statistics and LOG_INFO them upon SIGUSR1
Merges and closes #24.
2019-04-12 18:25:49 -04:00
Christopher Wellons
38e35ad4c9 Add note about __EXTENSIONS__ to README (illumos) 2019-04-04 21:44:44 -04:00
Anton Rieger
badf3dd69e Added -4 -6 Switches and default tcp46
As *BSD defaults to use IPv6 only sockets and Linux to IPv4 mapped IPv6
sockets, switches to support explicit binding address families are required.

Now set explicitly if you want IPv6 only, IPv4 only or mapped IPv4.

Caveat:
OpenBSD explicitly states to not support IPv4 mapped IPv6 via setsock-API
2019-04-03 17:11:04 +02:00
Christopher Wellons
b1c1599d32 Improve support for Solaris and its derivatives
Requires extensions to be enabled due to incomplete support for
POSIX.1-2008. However one of the now-exposed extensions is tragically
named "struct queue". This struct was been renamed to "struct fifo".

Thanks to @yvoinov for reporting this issue and collaborating on a
solution.

Closes #14, #17.
2019-03-26 18:23:15 -04:00
Christopher Wellons
e7c93c6664 Add link to main article in README 2019-03-25 09:37:34 -04:00
Christopher Wellons
44219a5e05 Add note about RHEL 6 / CentOS 6
Fixes #10.
2019-03-25 09:17:48 -04:00
Diego Casorran
94cf07e8ba Typo fix in README.md
Closes #6.
2019-03-23 13:03:53 -04:00
Christopher Wellons
5e12d658ce Flesh out a more detailed sample config 2019-02-03 18:51:37 -05:00
Christopher Wellons
20ec77e6ef Add LogLevel to the configuration file 2019-02-03 18:44:52 -05:00
Christopher Wellons
7693ce54e3 Fix up config parser and allow comments 2019-02-03 17:40:28 -05:00
Christopher Wellons
ae67a263f9 Tweak the README a bit 2019-02-03 12:04:23 -05:00
Christopher Wellons
8e1d9fc28a Make it clear when the config file is loaded 2019-02-03 12:00:35 -05:00
Christopher Wellons
7619af17ba Add sample config file to the README 2019-02-03 11:59:11 -05:00
Christopher Wellons
d9c5d3fcf0 Allow configuration via config file (-f, SIGHUP) 2019-02-03 11:47:20 -05:00
Christopher Wellons
66c549c87c Add -l to control banner line length 2019-02-03 09:39:10 -05:00
Christopher Wellons
ce7e3e5914 Allow graceful shutdown with SIGTERM 2019-02-03 09:18:38 -05:00
Christopher Wellons
3a1d0048f9 Tweak README 2019-02-03 08:26:42 -05:00
Christopher Wellons
112e5b303f Vastly improve logging 2019-02-03 08:11:52 -05:00
Christopher Wellons
7fbba1e7b0 Initial working code 2019-02-02 22:38:59 -05:00