Skip to content

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

Merged
diegosalvi merged 13 commits into
masterfrom
fix/blocked-client
Jul 1, 2020
Merged

diegosalvi merged 13 commits into
masterfrom
fix/blocked-client

Conversation

@eolivelli

@eolivelli eolivelli commented Jul 1, 2020 •

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

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

Copy link
Copy Markdown
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.

2 participants