Skip to content

Commit

Permalink
Merge pull request #98 from doyoubi/hotfix/DeadLoop
Browse files Browse the repository at this point in the history
Fix dead loop
  • Loading branch information
wooparadog authored Nov 3, 2016
2 parents 9367d4b + 75fc258 commit 779a993
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ void check_connections(struct context *ctx)
// the client connection is turned into an intermediate state.
// In this state the connection object has not called conn_free so the c->fd is not -1 here.
// But it should not call client_eof again.
if (c->eof) continue;
if (c->eof) {
LOG(WARN, "zombie client");
c = n;
continue;
}

if (c->info->last_active > 0
&& now - c->info->last_active > config.client_timeout)
Expand Down

0 comments on commit 779a993

Please sign in to comment.