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

broker_tcp/tls sync #762

Merged
merged 14 commits into from Dec 13, 2023
Merged

broker_tcp/tls sync #762

merged 14 commits into from Dec 13, 2023

Conversation

OdyWayne
Copy link
Collaborator

No description provided.

Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
@OdyWayne OdyWayne changed the title broker_tcp/tls support [WIP] broker_tcp/tls support Dec 12, 2023
@OdyWayne OdyWayne changed the title [WIP] broker_tcp/tls support [WIP] broker_tcp/tls sync Dec 12, 2023
Signed-off-by: wayne <yukang.wei@emqx.io>
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

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

Comparison is base (b1de212) 64.70% compared to head (a3ab05b) 64.73%.
Report is 8 commits behind head on main.

Files Patch % Lines
src/sp/transport/mqtts/broker_tls.c 0.00% 64 Missing ⚠️
src/sp/transport/mqtt/broker_tcp.c 76.19% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #762      +/-   ##
==========================================
+ Coverage   64.70%   64.73%   +0.03%     
==========================================
  Files         124      124              
  Lines       35879    35902      +23     
==========================================
+ Hits        23215    23241      +26     
+ Misses      12664    12661       -3     

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

@@ -1,6 +1,7 @@
#ifndef NANOLIB_ACL_CONF_H
#define NANOLIB_ACL_CONF_H

#include <string.h>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

darwin can't find string

Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
…e got closed abruptly

Signed-off-by: wayne <yukang.wei@emqx.io>
…qos_send cb

Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
Signed-off-by: wayne <yukang.wei@emqx.io>
@OdyWayne OdyWayne changed the title [WIP] broker_tcp/tls sync broker_tcp/tls sync Dec 12, 2023
Copy link
Member

@JaylinYu JaylinYu left a comment

Choose a reason for hiding this comment

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

well done

@@ -470,7 +469,13 @@ nmq_tcptran_pipe_qos_send_cb(void *arg)
return;
}
msg = nni_aio_get_msg(qsaio);
type = nni_msg_cmd_type(msg);
if (msg != NULL)
type = nni_msg_cmd_type(msg);
Copy link
Member

Choose a reason for hiding this comment

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

good catch

@@ -1069,9 +1078,8 @@ nmq_pipe_send_start_v4(tcptran_pipe *p, nni_msg *msg, nni_aio *aio)
// TODO packetid already exists.
// do we need to replace old with new
// one ? print warning to users
nni_println(
"ERROR: packet id duplicates in "
"nano_qos_db");
Copy link
Member

Choose a reason for hiding this comment

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

my bad

@@ -463,8 +483,8 @@ tlstran_pipe_qos_send_cb(void *arg)
return;
}

if (p->tcp_cparam->pro_ver == 5) {
(type == CMD_PUBCOMP || type == PUBACK) ? p->qrecv_quota++
Copy link
Member

Choose a reason for hiding this comment

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

hidden bug

@JaylinYu JaylinYu merged commit 01fe33a into main Dec 13, 2023
16 checks passed
@JaylinYu JaylinYu deleted the wayne/dev branch December 13, 2023 04:36
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.

Cool

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

5 participants