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 some gap between nng reap thread and msquic. #947

Merged
merged 4 commits into from
May 15, 2024
Merged

Fix some gap between nng reap thread and msquic. #947

merged 4 commits into from
May 15, 2024

Conversation

wanghaEMQ
Copy link
Member

  • The pack max restrict should be applied to both mqttv311 and mqtv5.
  • Fix the double free of msg when cancel stream sending.
  • Fix the double free of quic stream.

Signed-off-by: wanghaemq <wangwei@emqx.io>
…ree it.

Signed-off-by: wanghaemq <wangwei@emqx.io>
Signed-off-by: wanghaemq <wangwei@emqx.io>
@wanghaEMQ wanghaEMQ requested review from JaylinYu, RanMaoyi, OdyWayne and xinyi-xs and removed request for JaylinYu May 15, 2024 10:06
@wanghaEMQ wanghaEMQ changed the title Wangha/fix Fix some gap between nng reap thread and msquic. May 15, 2024
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.

I see a quic pipe ref is added, I cannot spot bug by just watch, have to rely on u at this PR now. will test more later

// It's the only place to free msquic stream
msquic_strm_fini(c->qstrm);
quic_stream_error(arg, NNG_ECONNSHUT);
quic_stream_rele(c);
Copy link
Member

Choose a reason for hiding this comment

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

an essential fix

static void
quic_stream_rele(nni_quic_conn *c)
{
quic_stream_close(c);
Copy link
Member

Choose a reason for hiding this comment

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

wow a big change

@JaylinYu JaylinYu merged commit 4723ee9 into main May 15, 2024
15 checks passed
@JaylinYu JaylinYu deleted the wangha/fix branch May 15, 2024 10:33
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