Skip to content
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 #812 #826

Merged
merged 6 commits into from Jan 25, 2024
Merged

Fix #812 #826

merged 6 commits into from Jan 25, 2024

Conversation

JaylinYu
Copy link
Member

No description provided.

Signed-off-by: jaylin <jaylin@emqx.io>
@jr1221
Copy link

jr1221 commented Jan 24, 2024

Can confirm seg fault no longer appears when connecting via paho-mqtt. aarch64 with latest nanomq head, this nng branch, and built with -Os.

@JaylinYu
Copy link
Member Author

thanks, will fix ci and have a release this month!

Signed-off-by: jaylin <jaylin@emqx.io>
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (cb6bfae) 65.76% compared to head (5a60652) 65.64%.
Report is 4 commits behind head on main.

Files Patch % Lines
src/sp/transport/mqtts/broker_tls.c 0.00% 17 Missing ⚠️
src/sp/transport/mqtt/broker_tcp.c 68.18% 7 Missing ⚠️
src/mqtt/protocol/mqtt/mqtt_client.c 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #826      +/-   ##
==========================================
- Coverage   65.76%   65.64%   -0.13%     
==========================================
  Files         129      129              
  Lines       37297    37302       +5     
==========================================
- Hits        24530    24488      -42     
- Misses      12767    12814      +47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@wanghaEMQ wanghaEMQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And should we also change the nego cb part?

// duplicated with fixed_header_adaptor
nni_msg_set_remaining_len(msg, len);
// fixed_header_adaptor(p->rxlen, msg);
nni_msg_set_remaining_len(msg, nni_msg_len(msg));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already set at 722line

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sure

Signed-off-by: jaylin <jaylin@emqx.io>
Signed-off-by: jaylin <jaylin@emqx.io>
Signed-off-by: jaylin <jaylin@emqx.io>
…f get_var_integar

Signed-off-by: jaylin <jaylin@emqx.io>
@JaylinYu JaylinYu merged commit b41ddf4 into main Jan 25, 2024
15 of 16 checks passed
@JaylinYu JaylinYu deleted the jaylin/develop branch January 25, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants