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
AWS IoT + WSS connection attempt results in "Bad handshake" after upgrade from 1.2.0 to 1.3.1 #479
Comments
I suspect this is a duplicate of #469. Can you please take a quick look and let me know if you agree. If so I will proceed with the fix I suggested on that issue (had been waiting on comments). |
Hi Matt, it seems a duplicate I agree (sorry, the search didn't help). I also see rolling back might make the ipv6 unusable. Not sure if a flag or separate function or input sanitizer can help keeping both features. Thanks for checking! |
I don't think so - IPv6 will work fine without the change (it's just up to the user to pass in an IPv6 address that complies with the RFC). I have added a comment to the pull request (#319 ) so that it's author is aware of the issue. If I don't hear anything in a couple of days I will reverse the change because it has the potential to impact quite a few users (whereas I suspect that the number of users needing IPv6 with zone indication is quite low and there is an easy work around). |
Nice, thanks! |
…ing). This change broke connections to AWS (and potentially other websocket providers) due to the use of parameters. Ref issues eclipse#479 and eclipse#469. Signed-off-by: Matt Brittan <matt@brittan.nz>
Please try @master and let me know if this resolves the issues. |
It works! Nice. |
Will wait a week or so (just in case any issues come up) then make a release. I'm aiming to make small, frequent releases to avoid a repeat of the 18 month delay between 1.2 and 1.3. |
Downgrading to v1.2.0 from v1.3.1 seems to resolve a TLS handshake issue I was facing with secure websockets. |
@austin-millan please provide more information (ideally on a new issue) if you want this looked into. At this point this particular issue is fixed (in @master), as per the comment from @Brbb above, and will be closed once a new release is out (which I am just about to do). |
I have released v1.3.2 which includes this fix. Will close this issue as you already stated that the fix works (please feel free to re-open if any issues arise). |
Hi,
I'm trying to connect AWS IoT through a wss URL created via
v4.NewSigner
which will result in something like `wss:///X-Amz-TokenThis worked well all the way to v1.2.0 but then it stopped working with a simple "bad handshake". I've read there might be some issue for the buffered/unbuffered related changes but I'm not sure is related to my issue.
The code I have is super simple:
I start it like this and it never arrives to the
for topic
partI'm now wondering if the Signed URL is creating issues for some reasons (everything is up and reachable, I can pub/sub to topics in my previous version of the code).
Edit:
I tried with an online test websocket at
ws://broker.emqx.io:8083/mqtt
and I can connect. I start thinking the wss presigned URL might have some issues with the updated library.The text was updated successfully, but these errors were encountered: