-
Notifications
You must be signed in to change notification settings - Fork 20
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 bugs on multi stream and do optimization on quic stream. #732
Conversation
Signed-off-by: wanghaemq <[email protected]>
Signed-off-by: wanghaemq <[email protected]>
Signed-off-by: wanghaemq <[email protected]>
…ng a quic stream. Signed-off-by: wanghaemq <[email protected]>
Signed-off-by: wanghaemq <[email protected]>
…tream whiling quic msgs are cached thoughtfully. Signed-off-by: wanghaemq <[email protected]>
Signed-off-by: wanghaemq <[email protected]>
08f5871
to
fae5bf4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #732 +/- ##
==========================================
- Coverage 65.76% 65.74% -0.02%
==========================================
Files 119 119
Lines 35222 35222
==========================================
- Hits 23163 23158 -5
- Misses 12059 12064 +5
☔ View full report in Codecov by Sentry. |
// Iterate topic lmq and send | ||
size_t lmqsz = nni_lmq_len(s->topic_lmq); | ||
log_debug("topic_lmq sz%ld Cached msg number%d", lmqsz, (int)(num_ptr - (char *)s)); | ||
for (int i=0; i<(int)lmqsz && (void *)num_ptr != s; ++i) { |
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.
racing in lmq?
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.
Sorry. I forgot to remove it
@@ -427,7 +427,10 @@ quic_stream_cb(int events, void *arg) | |||
nni_aio_list_remove(aio); | |||
QUIC_BUFFER *buf = nni_aio_get_input(aio, 0); | |||
free(buf); | |||
nni_aio_finish(aio, 0, nni_aio_count(aio)); | |||
if (rc != 0) |
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.
any elegant way?
Hi. after those commits. The multistream feature is more stable. Although it still could crash under benchmark.