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
I've copied the method in the issue so it is obvious what I found. The call to the epoll().unregister() is being passed the source not the file descriptor or in your case the fileno integer value. This is most likely not blowing up because the source is actually a long int (memory address) itself, but nothing is getting unregistered either. The Python docs indicate that both register and unregister should take as their 1st argument fd (file descriptor).
def remove(self, source):
"""Removes an event source from the Selector.
Arguments:
source -- the event source to remove.
"""
fileno = source.fileno()
self._get_epoll().unregister(source)
del self._sources[fileno]
The text was updated successfully, but these errors were encountered:
I've copied the method in the issue so it is obvious what I found. The call to the epoll().unregister() is being passed the
source
not the file descriptor or in your case thefileno
integer value. This is most likely not blowing up because thesource
is actually a long int (memory address) itself, but nothing is getting unregistered either. The Python docs indicate that bothregister
andunregister
should take as their 1st argumentfd
(file descriptor).The text was updated successfully, but these errors were encountered: