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

Server should not close clients when client only listens #13577

Merged

Conversation

sancar
Copy link
Contributor

@sancar sancar commented Aug 14, 2018

Client was not sending Ping to server when last read time is
up-to-date. When server constantly pushes events to client,
client does not send any ping to server. And consequently,
server closes client because it does not send any ping.

Client logic has changed so that it send pings if there is no
outgoing packages recently, rarther than looking at incoming
packages.

fixes #13576

@sancar sancar added this to the 3.11 milestone Aug 14, 2018
@sancar sancar self-assigned this Aug 14, 2018
Client was not sending Ping to server when last read time is
up-to-date. When server constantly pushes events to client,
client does not send any ping to server. And consequently,
server closes client because it does not send any ping.

Client logic has changed so that it send pings if there is no
outgoing packages recently, rarther than looking at incoming
packages.

fixes hazelcast#13576
@sancar sancar force-pushed the fix/serverClosesListeningClient/master branch from 9bb70fa to c8c193f Compare August 15, 2018 06:48
@Category(SlowTest.class)
public void testServerShouldNotCloseClientWhenClientOnlyListening() {
Config config = new Config();
int clientHeartbeatSeconds = 8;
Copy link
Contributor

Choose a reason for hiding this comment

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

why 8 secs and not a shorter duration? This seems to cause it to be a slow test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When it is shorter it could fail when environment is slow. That is why I wanted to keep it longer.

@sancar sancar merged commit 119d008 into hazelcast:master Aug 28, 2018
@sancar sancar deleted the fix/serverClosesListeningClient/master branch August 28, 2018 09:42
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Client Type: Defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client Connection cannot detect idle connection to send ping and server shutdown connection
4 participants