/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "dict-private.h"
#include <stdio.h>
static int pending = 0;
void *context ATTR_UNUSED)
{
/*else if (result->ret == 0)
i_info("not found");
else
i_info("%s", result->value);*/
pending--;
}
void *context ATTR_UNUSED)
{
pending--;
}
{
const char *error;
unsigned int i;
lib_init();
ioloop = io_loop_create();
if (argc < 3)
i_fatal("Usage: <prefix> <uri>");
for (i = 0;; i++) {
i_rand_limit(0xff));
switch (i_rand_limit(4)) {
case 0:
pending++;
break;
case 1: {
pending++;
break;
}
case 2: {
pending++;
break;
}
case 3: {
const char *k, *v;
while (dict_iterate(iter, &k, &v)) ;
break;
}
}
while (pending > 100) {
}
}
dict_deinit(&dict);
lib_deinit();
}