This series of patches fixes a possible memory exhaustion problem observed in ovsdb-server in an intentional stress test. The first three patches fix the problem:
json: New function json_serialized_length(). ovsdb-data: New functions for predicting serialized length of data. jsonrpc-server: Disconnect connections that queue too much data. The remaining two patches add a test. They are split into separate patches because it seems reasonable to backport the first three patches to older branches, but I am not sure about the test: ovsdb-client: Make "monitor" command able to monitor all tables. jsonrpc-server: Add test for disconnecting connections with too long queues. NEWS | 3 + lib/json.c | 125 +++++++++++++++++++++- lib/json.h | 4 +- lib/ovsdb-data.c | 93 ++++++++++++++++- lib/ovsdb-data.h | 6 +- ovsdb/jsonrpc-server.c | 108 ++++++++++++++++++- ovsdb/ovsdb-client.1.in | 10 ++ ovsdb/ovsdb-client.c | 279 ++++++++++++++++++++++++++++++++++++----------- tests/ovsdb-server.at | 85 ++++++++++++++ tests/test-json.c | 3 +- tests/test-ovsdb.c | 14 ++- 11 files changed, 655 insertions(+), 75 deletions(-) -- 1.7.2.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev