Skip to content

Fix: use addition to increase message size

Compare
Choose a tag to compare
@Namoshek Namoshek released this 01 Jul 19:09
· 9 commits to 0.1 since this release
92f01cf

As pointed out in #6, when using a username and password to connect to a broker, the message size has been manipulated using string concatenation instead of mathematical addition. This caused an issue with chr() expecting an integer and not a string. It also would have lead to wrong information being sent.

Usernames and passwords should now be correctly encoded during the connection handshake. Thanks to @sten for pointing out this oversight!