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
Python sockets are not thread-safe. The receiver_thread created in BaseTransport.start() should be the only thing interacting directly with the socket, unless explicit locks are involved. When the HeartbeatListener detects a heartbeat timeout, it calls transport.disconnect_socket() from the heartbeat thread. This closes and deallocates the socket while the receiver_thread is still attempting to read from it. This can result in memory corruption and segfaults.
The text was updated successfully, but these errors were encountered:
Python sockets are not thread-safe. The
receiver_thread
created inBaseTransport.start()
should be the only thing interacting directly with the socket, unless explicit locks are involved. When theHeartbeatListener
detects a heartbeat timeout, it callstransport.disconnect_socket()
from the heartbeat thread. This closes and deallocates the socket while thereceiver_thread
is still attempting to read from it. This can result in memory corruption and segfaults.The text was updated successfully, but these errors were encountered: