Skip to content

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

Merged
jfallows merged 1 commit intoaklivity:developfrom
jfallows:tcp-client-window-before-connected
Sep 21, 2023
Merged

Ensure socket channel has finished connecting before attempting to read#441
jfallows merged 1 commit intoaklivity:developfrom
jfallows:tcp-client-window-before-connected

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