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 [tls/transport] fix https://github.com/nanomq/nanomq/issues/1749 #917

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/sp/transport/mqtt/broker_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ nmq_tcptran_pipe_qos_send_cb(void *arg)
else {
log_warn("NULL msg detected in send_cb");
nni_mtx_unlock(&p->mtx);
tcptran_pipe_close(p);
return;
}

Expand Down Expand Up @@ -620,15 +621,15 @@ nmq_tcptran_pipe_send_cb(void *arg)
static void
tcptran_pipe_recv_cb(void *arg)
{
nni_aio *aio;
nni_aio *aio = NULL;
nni_iov iov[2];
uint8_t type, rv;
uint8_t pos = 0;
uint32_t len = 0;
nni_msg *msg = NULL, *qmsg;
uint8_t type = 0, rv = 0;
uint8_t pos = 0;
uint32_t len = 0;
nni_msg *msg = NULL, *qmsg = NULL;
tcptran_pipe *p = arg;
nni_aio *rxaio = p->rxaio;
bool ack = false;
bool ack = false;

log_trace("tcptran_pipe_recv_cb %p\n", p);
nni_mtx_lock(&p->mtx);
Expand Down
Loading