1b08df0ce0
add control socket (HTTP server)
...
also there is some refactoring on circologd: connection handling,
closing, etc. Not as much as needed, though: shutdown is still unclean,
and websocket clean shutdown is not tested
2018-11-11 19:51:21 +01:00
515e910683
refactor httpd
2018-11-11 19:19:21 +01:00
7c17c971a0
command responses
2018-11-11 19:10:53 +01:00
3f216f12f8
USR1 on circologd pause/resume
2018-11-10 18:22:23 +01:00
a990422953
HUP on circologd clears the buffer
2018-11-10 18:22:19 +01:00
7704c5ac70
tiny reformatting
2018-11-10 17:50:51 +01:00
86bdeed4a2
more signals handled
2018-11-10 17:43:48 +01:00
c70e28ff27
clean HTTP sockets on shutdown
2018-11-10 17:36:47 +01:00
917e457af0
some more check on http sockets
2018-11-10 17:28:02 +01:00
647701822c
fmt=json on websocket
2018-11-10 17:20:17 +01:00
f66e07e873
Fix syslogd-socket handling at interrupt
2018-11-10 16:32:12 +01:00
36f531a58a
fmt=json (http only)
2018-11-09 13:59:58 +01:00
a0b57e1a78
[http][ctail] n parameter also on circolog-tails
2018-11-09 11:21:50 +01:00
f4e6370abd
make tail with param ?l= (HTTP only)
2018-11-08 19:37:03 +01:00
fbc0f96647
refactor ClientOptions
2018-11-08 19:25:40 +01:00
5ae6078805
[http] Better handling of parameters and added LastMsg to Client
2018-11-08 12:39:41 +01:00
4838f45f13
[http] Stricter behaviour with l=
2018-11-05 11:53:26 +01:00
89c59e5713
[http] adding first draft of server-side message number limit.
2018-11-04 23:13:27 +01:00
d380deae37
[tail] unix socket support
2018-10-25 13:59:27 +02:00
a5999adb8d
add basic circolog-tail client
2018-10-25 13:59:22 +02:00
369e16d6c3
format in "/var/log/messages style"
2018-08-23 15:40:57 +02:00
34593d380a
refactor: hub reorganized a little
2018-08-23 12:25:07 +02:00
71763cf8b1
HTTP unix domain socket
2018-08-23 02:08:53 +02:00
8568280dd1
FIX timeout issues between channels
...
we introduced non-blocking writes; however, being non-blocking when the
goroutine has no buffer means that many messages will be considered
lost.
This commit change from "non blocking" to "max 500ms; first timeout
means stop it all"; it also put a little buffer on client messages.
2018-08-23 02:05:50 +02:00
bf145240c2
proper cmd directory
2018-08-23 01:21:53 +02:00