-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
wanghaEMQ
commented
May 15, 2024
- 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>
Signed-off-by: wanghaemq <wangwei@emqx.io>
There was a problem hiding this 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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow a big change