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

Aio begin cb #1983

Closed
wants to merge 5 commits into from
Closed

Aio begin cb #1983

wants to merge 5 commits into from

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Dec 9, 2024

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 64.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 81.90%. Comparing base (ab460d5) to head (8857845).
Report is 79 commits behind head on main.

Files with missing lines Patch % Lines
src/sp/transport/ws/websocket.c 66.66% 4 Missing ⚠️
src/sp/transport/tcp/tcp.c 50.00% 2 Missing ⚠️
src/sp/transport/tls/tls.c 50.00% 2 Missing ⚠️
src/sp/transport/ipc/ipc.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1983      +/-   ##
==========================================
- Coverage   81.97%   81.90%   -0.08%     
==========================================
  Files          95       95              
  Lines       24027    24034       +7     
  Branches     3165     3165              
==========================================
- Hits        19696    19684      -12     
- Misses       4260     4279      +19     
  Partials       71       71              

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

There is a very subtle case where an aio can be closed, but we
don't realize it until precisely the moment of nni_aio_begin.
This is eaten, and the submitter winds up having no way of knowing
that the aio is closed, leading to a potential hang, or a leaked
resource.

It is very important that aio users check the return value and do
not resubmit an operation once NNG_ECLOSED is returned.  Otherwise
a circular loop can result.
This is important to help differentiate between a single canceled
operation and the situation where the entire underlying object is
stopped and cannot be reused.

Includes updates to docs and tests.
Also increase the backoff times to 1/2 seconds, if we are out of
files or memory.  If someone is up against this, they want to let
the system calm down.
@gdamore
Copy link
Contributor Author

gdamore commented Dec 27, 2024

OBE.

@gdamore gdamore closed this Dec 27, 2024
@gdamore gdamore deleted the aio-begin-cb branch December 27, 2024 02:35
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.

1 participant