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 [ws] Fix a timing issue #676

Merged
merged 1 commit into from
Aug 23, 2023
Merged

* FIX [ws] Fix a timing issue #676

merged 1 commit into from
Aug 23, 2023

Conversation

RanMaoyi
Copy link
Contributor

@RanMaoyi RanMaoyi commented Aug 23, 2023

If recv_cb executes before accept_cb, ep_aio will be empty, and the uaio in recv_cb will not be assigned correctly, which will cause the listener's accaio to fail to finish properly, resulting in a ws link establishment failure problem.

fixes (nanomq/nanomq#1210)

image

If recv_cb executes before accept_cb, ep_aio will be empty, and the uaio
in recv_cb will not be assigned correctly, which will cause the
listener's accaio to fail to finish properly, resulting in a ws link
establishment failure problem.

Signed-off-by: Moi Ran <maoyi.ran@emqx.io>
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.22% 🎉

Comparison is base (f6c39e0) 64.63% compared to head (8bed18f) 64.85%.
Report is 131 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #676      +/-   ##
==========================================
+ Coverage   64.63%   64.85%   +0.22%     
==========================================
  Files         119      119              
  Lines       35375    35375              
==========================================
+ Hits        22864    22944      +80     
+ Misses      12511    12431      -80     
Files Changed Coverage Δ
src/sp/transport/mqttws/nmq_websocket.c 2.37% <0.00%> (ø)

... and 16 files with indirect coverage changes

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

@JaylinYu
Copy link
Member

@Hermann0222 lets make a coverage test on ws

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.

ok cool;
my bad

@JaylinYu JaylinYu merged commit 9d546cc into main Aug 23, 2023
13 of 17 checks passed
@JaylinYu JaylinYu deleted the moi_fix_ws branch August 23, 2023 15:02
@OdyWayne
Copy link
Collaborator

@Hermann0222 lets make a coverage test on ws

Roger

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

3 participants