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

TestChannel() Fails when trying the test a secure connection. #196

Open
JWB4AZ opened this issue Nov 9, 2023 · 0 comments
Open

TestChannel() Fails when trying the test a secure connection. #196

JWB4AZ opened this issue Nov 9, 2023 · 0 comments

Comments

@JWB4AZ
Copy link

JWB4AZ commented Nov 9, 2023

TestChannel() fails unexpectedly when testing a secure connection.
I'm using QPID 9.1.0 with jdk-14.0.2. QPID has been edited to handle the secure connection.
The Uri example format is as follows: "amqps://user:[email protected]:5671"
The return exception has a generic HRESULT == COR_E_EXCEPTION and the InnerException.HResult == COR_E_IO.
If I ignore this failure and go on to open the endpoint, it open successfully and after a call to AddPublishChannel(), TestPublishChannel() is successful.
The problem occurs when QPID is not running.
In this case, again TestChannel() fails as expected.
The return exception has a generic HRESULT == COR_E_EXCEPTION and the InnerException.HResult == E_FAIL.
Now if I ignore the failure, the endpoint opens successfully and after a call to AddPublishChannel(), TestPublishChannel() now fails.
The endpoint is disposed, but there is a memory leak. The memory leak results in growing heap usage that will in the end crash my program.
If TestChannel() did not fail with a secure connection, I could avoid the memory leak by not trying to open an endpoint and publish a channel when QPID is not running.

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

No branches or pull requests

1 participant