Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Conversation

dingxiong
Copy link

@dingxiong dingxiong commented Apr 10, 2024

See issue #177

For SSL protocol, the socket will be wrapped inside a SSLSocket instance, and the original socket will be detached, i.e., closed without closing the underlying file description. This leads to -1 socket.fileno inside Epoll selector.
This does not create any problem until #156 , which unregisters fd based on socket.fileno.

We can just check key.fd instead of key.fileob.fileno() on top of #156, but I think a better solution is to handle SSL socket more gracefully. Having a registered socket with key.fd != key.fileobj.fileno() is error-prone in my opinion.

@wbarnha
Copy link
Collaborator

wbarnha commented Apr 10, 2024

Besides the aforementioned change I've suggested, everything else here I agree with. Thanks a bunch, I'm looking forward to getting this merged.

@wbarnha wbarnha merged commit 611471f into kafka-python-ng:master Apr 10, 2024
Copy link

@Bolaekputi Bolaekputi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lee

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants