| 856 | } |
| 857 | |
| 858 | static void createMissingClients(client c) { |
| 859 | int n = 0; |
| 860 | while(config.liveclients < config.numclients) { |
| 861 | int thread_id = -1; |
| 862 | if (config.num_threads) |
| 863 | thread_id = config.liveclients % config.num_threads; |
| 864 | createClient(NULL,0,c,thread_id); |
| 865 | |
| 866 | /* Listen backlog is quite limited on most systems */ |
| 867 | if (++n > 64) { |
| 868 | usleep(50000); |
| 869 | n = 0; |
| 870 | } |
| 871 | } |
| 872 | } |
| 873 | |
| 874 | extern "C" void asyncFreeDictTable(dictEntry **de) { |
| 875 | zfree(de); |
no test coverage detected