-
Notifications
You must be signed in to change notification settings - Fork 964
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
Fix compression (#2806) #2819
Fix compression (#2806) #2819
Conversation
🤖 Pull request artifacts
|
@GUVWAF Mc-hamster did a great job integrating Unishox 2 but I guess all of us got mislead into thinking that compression is working, especially since Longfast has really short airtime. This bug became apparent only after I used VeryLongSlow. Big thanks to you and @mc-hamster for working on compression! I hope you were able to verify that compression actually works now? My long sample message which contained dozens of 'hello's should go across on VeryLongSlow in less than 8 seconds instead of 27 seconds. I'm currently far away from my laptop and civilisation so can't check it out myself unfortunately. |
Yes, confirmed on VeryLongSlow:
|
Fixes #2806.
The packet was encoded to protobufs before the
decoded
part was modified, so in protobufs encoding, still the old payload and portnum was used. Furthermore, while decompressing (which actually didn't happen because the portnum was notTEXT_MESSAGE_COMPRESSED_APP
), the payload size wasn't modified.Not sure if this has ever worked before, since there were no real changes in this part of the code since it was implemented.