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

Ensure socket channel has finished connecting before attempting to read #441

Merged

Conversation

jfallows
Copy link
Contributor

Description

If socket channel is still connecting asynchronously while WINDOW frame arrives proactively on reply stream before BEGIN is sent, then attempting to read from the socket channel causes a NotYetConnectedException.

If we guard against that, then the socket read will happen when the OP_READ handler is set after the socket channel connects successfully.

@jfallows jfallows merged commit 2318388 into aklivity:develop Sep 21, 2023
@jfallows jfallows deleted the tcp-client-window-before-connected branch September 21, 2023 21:01
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