Skip to content

Conversation

@jbescos
Copy link
Member

@jbescos jbescos commented Sep 13, 2021

Relates to #4851

…ion with inactive_pooled_connection_handler error

Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
} else {
try {
// Remove it only if the channel is open. Otherwise there are no such names and it fails.
chan.pipeline().remove(INACTIVE_POOLED_CONNECTION_HANDLER);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer this not to be in else block and try to do this no matter the chan.isOpen or not.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was not very happy about eating one exception, so I tried to minimize the frequency that it happens. But yes, anyway we need to eat it.

}

// This test is for debugging purposes. By default it works with and without the fix.
@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not in favor of adding this file to the project.

  1. The file brings in additional dependency
  2. The test passes either way. The comment suggests it is for debugging purposes, but the usage is doubtful.

Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
@senivam senivam merged commit 8fed3c6 into eclipse-ee4j:master Sep 17, 2021
@senivam senivam added this to the 2.36 milestone Sep 17, 2021
This was referenced Jun 14, 2022
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.

3 participants