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 (#156)
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 unregister the socket if the fd is negative. Co-authored-by: Orange Kao <orange@aiven.io>
- Loading branch information