aboutsummaryrefslogtreecommitdiff
path: root/tests/websockets_bigdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/websockets_bigdata.h')
-rw-r--r--tests/websockets_bigdata.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/websockets_bigdata.h b/tests/websockets_bigdata.h
new file mode 100644
index 00000000..fa1a6b17
--- /dev/null
+++ b/tests/websockets_bigdata.h
@@ -0,0 +1,20 @@
+
+#include <stdlib.h>
+
+#define DATA_SIZE 1250
+// 1500 fails
+
+char *generateData() {
+ char *ret = malloc(65536*2);
+ char *curr = ret;
+ for (int i = 0; i < 256; i++) {
+ for (int j = 0; j < 256; j++) {
+ *curr = i;
+ curr++;
+ *curr = j;
+ curr++;
+ }
+ }
+ return ret;
+}
+