Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid 100% CPU usage while socket is closed (sleep)
After stop/start kafka service, kafka-python may use 100% CPU caused by busy-retry while the socket was closed. This fix the issue by sleep 0.1 second if the fd is negative.
- Loading branch information