Skip to content

Respond to keep-alive with response flag off. #194

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

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

NiteshKant
Copy link
Contributor

Problem

ServerReactiveSocket upon receiving a KeepAlive frame responds with a KeepAlive frame as an ack. This ack MUST not have respond flag set to true. Doing so will result in an infinite loop of keep-alive frames sent between the peers.

Modification

ServerReactiveSocket responds with the respond flag turned off.

Result

No infinite loop of keep-alive frames.

#### Problem

`ServerReactiveSocket` upon receiving a `KeepAlive` frame responds with a `KeepAlive` frame as an ack. This ack MUST not have respond flag set to true. Doing so will result in an infinite loop of keep-alive frames sent between the peers.

#### Modification

`ServerReactiveSocket` responds with the respond flag turned off.

#### Result

No infinite loop of keep-alive frames.
Copy link
Member

@stevegury stevegury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevegury stevegury merged commit 5c6dd9b into rsocket:0.5.x Nov 11, 2016
@NiteshKant NiteshKant deleted the 0.5.x-keep-alive branch November 11, 2016 23:07
NiteshKant added a commit that referenced this pull request Dec 8, 2016
#### Problem

`ServerReactiveSocket` upon receiving a `KeepAlive` frame responds with a `KeepAlive` frame as an ack. This ack MUST not have respond flag set to true. Doing so will result in an infinite loop of keep-alive frames sent between the peers.

#### Modification

`ServerReactiveSocket` responds with the respond flag turned off.

#### Result

No infinite loop of keep-alive frames.
NiteshKant added a commit to NiteshKant/reactivesocket-java that referenced this pull request Dec 14, 2016
`ServerReactiveSocket` upon receiving a `KeepAlive` frame responds with a `KeepAlive` frame as an ack. This ack MUST not have respond flag set to true. Doing so will result in an infinite loop of keep-alive frames sent between the peers.

`ServerReactiveSocket` responds with the respond flag turned off.

No infinite loop of keep-alive frames.
ilayaperumalg pushed a commit to ilayaperumalg/rsocket-java that referenced this pull request Dec 26, 2017
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.

2 participants