Skip to content

Commit

Permalink
Fix dead loop
Browse files Browse the repository at this point in the history
  • Loading branch information
doyoubi committed Nov 3, 2016
1 parent 9367d4b commit 75fc258
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 75fc258

Please sign in to comment.