Skip to content

Commit

Permalink
Fix incorrect unit of usleep, should fix #91
Browse files Browse the repository at this point in the history
(cherry picked from commit 74d88d1)
  • Loading branch information
jiangwenyuan committed Aug 8, 2020
1 parent 58f5447 commit 3bfe701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nuster/cache/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ _nst_cache_filter_http_headers(hpx_stream_t *s, hpx_filter_t *filter, hpx_http_m
int t = nst_time_now_ms() - ctx->ctime;

if(ctx->prop->wait == 0 || (ctx->prop->wait > 0 && t < ctx->prop->wait * 1000)) {
usleep(1);
usleep(1000);
ctx->state = NST_CTX_STATE_INIT;

task_wakeup(s->task, TASK_WOKEN_MSG);
Expand Down

0 comments on commit 3bfe701

Please sign in to comment.