open-consul/command
Paul Banks 69ebbf3e79
Fixes #3891: agent monitor no longer unresponsive before logs stream.
The root cause is actually that the agent's streaming HTTP API didn't flush until the first log line was found which commonly was pretty soon since the default level is INFO. In cases where there were no logs immediately due to level for instance, the client gets stuck in the HTTP code waiting on a response packet from the server before we enter the loop that checks the shutdown channel from the signal handler.

This fix flushes the initial status immediately on the streaming endpoint which lets the client code get into it's expected state where it's listening for shutdown or log lines.
2018-02-19 21:53:10 +00:00
..
agent agent: fix TestRetryJoin 2017-10-24 20:35:37 +02:00
catalog remove golint warnings 2018-01-28 22:40:13 +04:00
event commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
exec commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
flags Pull http config flag merge into public method 2018-02-05 15:00:04 -08:00
forceleave commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
info commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
join commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
keygen commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
keyring commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
kv Adds -base64 support to kv get command. 2017-12-14 17:28:04 -08:00
leave commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
lock Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
maint commands: cleanup init 2017-10-18 02:39:10 +02:00
members commands: cleanup init 2017-10-18 02:39:10 +02:00
monitor Fixes #3891: agent monitor no longer unresponsive before logs stream. 2018-02-19 21:53:10 +00:00
operator Fix typo 2018-01-05 15:24:44 -05:00
reload commands: get HTTP API flags for usage automatically 2017-10-18 00:08:45 +02:00
rtt remove golint warnings 2018-01-28 22:40:13 +04:00
snapshot Fix a panic in snapshot inspect command 2017-10-30 14:51:08 -07:00
validate Updates documentation for consul validate. 2017-10-19 18:59:05 -07:00
version commands: run all tests in parallel (again) 2017-10-18 00:08:45 +02:00
watch Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
commands_oss.go Adds a registry mechanism for CLI commands. 2017-11-29 18:36:52 -08:00
registry.go Adds a registry mechanism for CLI commands. 2017-11-29 18:36:52 -08:00