h2load: Use ev_timer_init

This commit is contained in:
Tatsuhiro Tsujikawa 2015-08-18 21:34:33 +09:00
parent 04aaaa3821
commit 9da6c88d25
1 changed files with 4 additions and 4 deletions

View File

@ -208,13 +208,13 @@ Client::Client(Worker *worker, size_t req_todo)
wev.data = this; wev.data = this;
rev.data = this; rev.data = this;
ev_timer_init(&conn_inactivity_watcher, conn_timeout_cb, 0.,
worker->config->conn_inactivity_timeout);
conn_inactivity_watcher.data = this; conn_inactivity_watcher.data = this;
ev_init(&conn_inactivity_watcher, conn_timeout_cb);
conn_inactivity_watcher.repeat = worker->config->conn_inactivity_timeout;
conn_active_watcher.data = this;
ev_timer_init(&conn_active_watcher, conn_timeout_cb, ev_timer_init(&conn_active_watcher, conn_timeout_cb,
worker->config->conn_active_timeout, 0); worker->config->conn_active_timeout, 0.);
conn_active_watcher.data = this;
} }
Client::~Client() { disconnect(); } Client::~Client() { disconnect(); }