-
Notifications
You must be signed in to change notification settings - Fork 135
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
SSL connection failing due to optimisations in PR #134 #135
Comments
Thanks for reporting this. I am not sure if the best thing to do is:
What do you think @tenderlove ? |
I think we should monkeypatch OpenSSL. If normal sockets support |
@tenderlove fantastic! Thank you very much! |
Thanks both |
Hi @tenderlove. Do you think you might have time to create a patch for the lack of Would be good to make a new release of this gem. |
This backports the getbyte method which was added in this PR: ruby/openssl#438 We only add the method to SSLSocket if the method isn't already defined. I was able to test this with the following program: ```ruby require 'rubygems' require 'mqtt' client = MQTT::Client.connect( host: "test.mosquitto.org", port: 8883, ssl: true ) client.get ``` Fixes njh#135
This backports the getbyte method which was added in this PR: ruby/openssl#438 We only add the method to SSLSocket if the method isn't already defined. I was able to test this with the following program: ```ruby require 'rubygems' require 'mqtt' client = MQTT::Client.connect( host: "test.mosquitto.org", port: 8883, ssl: true ) client.get ``` Fixes njh#135
This backports the getbyte method which was added in this PR: ruby/openssl#438 We only add the method to SSLSocket if the method isn't already defined. I was able to test this with the following program: ```ruby require 'rubygems' require 'mqtt' client = MQTT::Client.connect( host: "test.mosquitto.org", port: 8883, ssl: true ) client.get ``` Fixes #135
Hitting an issue with this library due to #134, I now cannot get the client to load an SSL connection.
Ruby version 2.7.2.p137
Clean build of ruby with openssl 1.1.1i on OSX
Here is a minimal reproduction of the issue:
https://github.com/Andy-Bell/mqtt-error-from-pr-134
Expected outcome:
Current outcome
The text was updated successfully, but these errors were encountered: