-
Notifications
You must be signed in to change notification settings - Fork 51
free_socket
or close_socket
?
#207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@justmobilize do you have any idea on this question? Are there situations where that needs to be close_socket() instead? or perhaps it should both close and free? |
Since @o-control is this causing an error in your code? |
Hi If I use the Looking at what's happening in |
Sounds good. Let me take a look at it. |
@brentru although I can update this to re-use the open socket, I would imagine without calling |
Per the MQTT spec, without a call to
I don't fully understand the use case on this issue |
@brentru perfect. The issue is that with the change to |
Thanks everyone! |
@o-control thanks for opening the issue |
This may be due to some quirk of my code, but I've found that with this line as written:
self._connection_manager.free_socket(self._sock)
the MQTT connection doesn't close on calling
disconnect()
. For me it does work if I change that line to:self._connection_manager.close_socket(self._sock)
The text was updated successfully, but these errors were encountered: