Skip to content

Commit

Permalink
Remove unnecessary 100ms sleep when broker goes from UP -> DOWN (#1895)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Aug 7, 2018
1 parent 602b48b commit 961c60e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/rdkafka_broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -3560,10 +3560,6 @@ static int rd_kafka_broker_thread_main (void *arg) {
rd_kafka_broker_lock(rkb);
rd_kafka_broker_set_state(rkb, RD_KAFKA_BROKER_STATE_UP);
rd_kafka_broker_unlock(rkb);
} else {
/* Connection torn down, sleep a short while to
* avoid busy-looping on protocol errors */
rd_usleep(100*1000/*100ms*/, &rk->rk_terminate);
}
break;
}
Expand Down

0 comments on commit 961c60e

Please sign in to comment.