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: check socket error codes to avoid overcounting short sends (fixes #1756) #1759

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klittlepage
Copy link

Connected Aeron sockets can produce zero-sized reads and writes in non-exceptional situations, e.g., when performing a network publication setup check against a host that hasn't started listening. This commit adds a check for non-exceptional socket errors to prevent incrementing the short send counter in such situations.

Fixes #1756

…aeron-io#1756)

Connected Aeron sockets can produce zero-sized reads and writes in
non-exceptional situations, e.g., when performing a network publication
setup check against a host that hasn't started listening. This commit
adds a check for non-exceptional socket errors to prevent incrementing
the short send counter in such situations.

Fixes aeron-io#1756
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.

Aeron socket/transport return codes lose context, resulting in erroneous short send reports
1 participant