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

Issue 148: "Stuck client" may not be detected in case of non-open socket #164

Merged
merged 13 commits into from
Jul 1, 2020

Conversation

eolivelli
Copy link
Contributor

@eolivelli eolivelli commented Jul 1, 2020

In case of unhandled exception on the server side we are marking the connection as "not valid" and thus we are not processing pending messages anymore.
With this change the processing of pending messages is executed even in case of "failed" NettyChannel.

The new test case hangs without this change

Fixes #164

@@ -601,7 +601,7 @@ public void replyReceived(Message originalMessage, Message message, Throwable er

void processIdleConnection() {
Channel _channel = channel;
if (_channel != null && _channel.isValid()) {
if (_channel != null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually the fix !

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@@ -601,7 +601,7 @@ public void replyReceived(Message originalMessage, Message message, Throwable er

void processIdleConnection() {
Channel _channel = channel;
if (_channel != null && _channel.isValid()) {
if (_channel != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@diegosalvi diegosalvi merged commit 8c72f31 into master Jul 1, 2020
@diegosalvi diegosalvi deleted the fix/blocked-client branch July 1, 2020 13:10
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.

None yet

2 participants