You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _process_incoming_data may cause 100% cpu usage problem when read data from bad socket fd.
def_process_incoming_data(self):
"""Retrieve and process any incoming data. :return: """whileself._running.is_set():
ifself.poller.is_ready:
self.data_in+=self._receive()
self.data_in=self._on_read_impl(self.data_in)
The _process_incoming_data may cause 100% cpu usage problem when read data from bad socket fd.
strace
found select syscall return immediately and recvfrom syscall read zero data.We should check the received data length to fix the dead loop problem.
Ref: The Redis client how to check the received data length. https://github.com/redis/redis-py/blob/16cfcc7fced84d2b53edf95af1c40b230b30fc3d/redis/connection.py#L435
The text was updated successfully, but these errors were encountered: