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
migrated from Bugzilla #461714
status UNCONFIRMED severity enhancement in component Mosquitto client library for 1.4
Reported in version 1.4 on platform All
Assigned to: Roger Light
On 2015-03-09 09:50:51 -0400, Mikkel Kirkgaard Nielsen wrote:
No check is currently done to assure that the mosq->sock file descriptor returned by mosquitto_socket() is still valid or is a mosquitto socket.
This became an issue when trying to create a useable PHP socket resource in Mosquitto-PHP which caused PHP garbage collector to close the socket when the resulting PHP socket object went out of scope (see mgdm/Mosquitto-PHP#22).
I have also done some experimentation with closing of the mosquitto fd which seems to suggest that the library attempts to use the original file descriptor even though it is now either closed or used for a completely different resource.
Of course closing the fd is non-intended behaviour by the library user, but shouldn't the library be able to handle the situation more gracefully?
On 2015-03-27 17:04:40 -0400, Roger Light wrote:
Thanks for the report, I agree that this is a problem. I'm not sure what the best way of handling this is at the moment.
The text was updated successfully, but these errors were encountered:
migrated from Bugzilla #461714
status UNCONFIRMED severity enhancement in component Mosquitto client library for 1.4
Reported in version 1.4 on platform All
Assigned to: Roger Light
On 2015-03-09 09:50:51 -0400, Mikkel Kirkgaard Nielsen wrote:
On 2015-03-27 17:04:40 -0400, Roger Light wrote:
The text was updated successfully, but these errors were encountered: