Fix/Enh: LiveStatus: performance enhancement + various clean/simplification/fix.
Clean/Fix/Simplification: various clean + logs added + DRY
livestatus: better get_live_date_log().
LiveStatus_broker: try to force release memory.
LiveStatusLogSToreSqlite: add a generator version of execute for select,
LiveStatusResponse: use a namedtuple for separators.
LiveStatusWaitQuery: clean __init__.
Added a "LiveStatusListResponse" to help memory usage with very long response.
Fix: most probably a typo due to an auto-completion.
Clean/Enh: logstore_sqlite module.
- Use LiveStatusLogStoreSqlite.select().
- changed get_live_data_log to a generator.
- changed select_live_data_log to a generator.
- simplified where possible.
- clean for some logs.
Clean: give some logs when abnormal things/shit happen.
clean: livestatus_response: simplifications.
LiveStatusResponse: reduce continuous size required + add a clean method on LiveStatusListResponse.
Also: json or python: don't like the _compact.
livestatus_broker: be DRY + correct/better handling of closing cient connection.
Again a DRY/facto. + log warning on shutdow failed.
Added some comments.
test_livestatus: Adaptations for reworked LiveStatus.
changed many assert_(x==y) to assertEquals(x, y) for easier debug.
livestatus tests: need to eventually flatten the response.
Fix. compared one byte too mutch.
factorize mock_livestatus_broker_handle_request
Fix: None dereference. (+ x == None -> x is None)
livestatus: slightly better tests: better mock.
LS tests: fix test_livestatus_db