summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--examples/py-flow-dashboard/dashboard.pngbin0 -> 85964 bytes
-rw-r--r--nDPIsrvd.c4
3 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8814d683d..4977ee38c 100644
--- a/README.md
+++ b/README.md
@@ -155,5 +155,9 @@ e.g.:
`./test/run_tests.sh [${HOME}/git/nDPI] [${HOME}/git/nDPId/build/nDPId-test]`
Remember that all test results are tied to a specific libnDPI commit hash
-as part of the `git submodule`. Using `test/run_tests.s` for other commit hashes
+as part of the `git submodule`. Using `test/run_tests.sh` for other commit hashes
will most likely result in PCAP diff's.
+
+Why not use `examples/py-flow-dashboard/flow-dash.py` to visualize nDPId's output:
+
+![dashboard](examples/py-flow-dashboard/dashboard.png "Plotly/Dash Example")
diff --git a/examples/py-flow-dashboard/dashboard.png b/examples/py-flow-dashboard/dashboard.png
new file mode 100644
index 000000000..e5b5ac9af
--- /dev/null
+++ b/examples/py-flow-dashboard/dashboard.png
Binary files differ
diff --git a/nDPIsrvd.c b/nDPIsrvd.c
index 4e48c9ca1..c5d2e2a4e 100644
--- a/nDPIsrvd.c
+++ b/nDPIsrvd.c
@@ -477,6 +477,10 @@ static void disconnect_client(int epollfd, struct remote_desc * const current)
current->fd = -1;
remotes.desc_used--;
}
+ if (current->buf_cache != NULL)
+ {
+ utarray_clear(current->buf_cache);
+ }
nDPIsrvd_buffer_free(&current->buf);
}