mirror of
https://github.com/wg/wrk
synced 2025-01-08 06:52:55 +08:00
ensure connection structs are zeroed
This commit is contained in:
parent
205a1960c8
commit
0c64376d09
@ -231,7 +231,7 @@ void *thread_main(void *arg) {
|
||||
thread *thread = arg;
|
||||
aeEventLoop *loop = thread->loop;
|
||||
|
||||
thread->cs = zmalloc(thread->connections * sizeof(connection));
|
||||
thread->cs = zcalloc(thread->connections * sizeof(connection));
|
||||
tinymt64_init(&thread->rand, time_us());
|
||||
thread->latency = stats_alloc(100000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user