From 98f5a4cd845035a7fbeaa8ea95e58023c52e2b9c Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 25 May 2016 18:55:37 +0200 Subject: tools: Add threadpool to cbr This adds a threadpool to cbr, so that it is not overflooded with client requests. --- src/tools/cbr/cbr_client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/cbr/cbr_client.c') 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; } -- cgit v1.2.3