vici: Return a Python generator instead of a list for streamed responses
authorMartin Willi <martin@revosec.ch>
Mon, 2 Mar 2015 14:25:55 +0000 (15:25 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 18 Mar 2015 12:59:14 +0000 (13:59 +0100)
commita47e431ba9c8b88a7a2244b7793afd29d72bd729
tree9552db5b12f851bfda33f772c062d8e699a6d0fe
parent90e16837bae939875a01be55e7c350bb83c66019
vici: Return a Python generator instead of a list for streamed responses

In addition that it may reduce memory usage and improve performance for large
responses, it returns immediate results. This is important for longer lasting
commands, such as initiate/terminate, where immediate log feedback is preferable
when interactively calling such commands.
src/libcharon/plugins/vici/README.md
src/libcharon/plugins/vici/python/vici/session.py