Merge branch 'shukitchan-master'
This commit is contained in:
commit
5744acc2ca
|
@ -742,10 +742,19 @@ int Client::connection_made() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
duration = config.timings[reqidx];
|
duration = config.timings[reqidx];
|
||||||
|
if (reqidx == 0) {
|
||||||
|
// if reqidx wraps around back to 0, we uses up all lines and
|
||||||
|
// should break
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
request_timeout_watcher.repeat = duration;
|
if (duration >= 1e-9) {
|
||||||
ev_timer_again(worker->loop, &request_timeout_watcher);
|
// double check since we may have break due to reqidx wraps
|
||||||
|
// around back to 0
|
||||||
|
request_timeout_watcher.repeat = duration;
|
||||||
|
ev_timer_again(worker->loop, &request_timeout_watcher);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
signal_write();
|
signal_write();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue