summaryrefslogtreecommitdiff
path: root/src/tools/cbr/cbr_client.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-05-25 18:55:37 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-05-26 14:41:33 +0200
commit98f5a4cd845035a7fbeaa8ea95e58023c52e2b9c (patch)
treed8d843e83759caeb805dd415c83bd3fee7e52b51 /src/tools/cbr/cbr_client.c
parent8ade85d2084433198f050978b2f0ec8347efd37d (diff)
downloadouroboros-98f5a4cd845035a7fbeaa8ea95e58023c52e2b9c.tar.gz
ouroboros-98f5a4cd845035a7fbeaa8ea95e58023c52e2b9c.zip
tools: Add threadpool to cbr
This adds a threadpool to cbr, so that it is not overflooded with client requests.
Diffstat (limited to 'src/tools/cbr/cbr_client.c')
-rw-r--r--src/tools/cbr/cbr_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/cbr/cbr_client.c b/src/tools/cbr/cbr_client.c
index 78b95255..ff7d4057 100644
--- a/src/tools/cbr/cbr_client.c
+++ b/src/tools/cbr/cbr_client.c
@@ -67,6 +67,7 @@ int client_main(int duration, int size, long rate)
if (flow_write(fd, buf, size) == -1) {
printf("Failed to write SDU.\n");
+ stop = true;
continue;
}