You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we use your library in our project for communicating with queue managers and are currently experiencing some issues with error code 2391 (MQRC_SSL_ALREADY_INITIALIZED).
We have logic to attempt a reconnect when encountering certain errors and noticed that while we tried to close the connections, the connections still seemed to pile up.
I think this might be due to the way non-OK return codes are handled by this library.
As I understand, code 2391 signifies that a connection has successfully been established, albeit ignoring the provided SSL/TLS settings, re-using the configuration of an existing connection instead.
Looking at the upstream library, mq-golang, shows that
Hi @manheckxx - thanks for raising this issue, and for investigating the code behaviour that caused it 👍
I've made the necessary code update, and validated with a new testcase that reproduces the scenario you described under #73, which is now also packaged as release v1.13.0 of this library.
Please feel free to re-open this issue if you find the fix doesn't work for you.
Regards, Matt.
Greetings,
we use your library in our project for communicating with queue managers and are currently experiencing some issues with error code 2391 (
MQRC_SSL_ALREADY_INITIALIZED
).We have logic to attempt a reconnect when encountering certain errors and noticed that while we tried to close the connections, the connections still seemed to pile up.
I think this might be due to the way non-OK return codes are handled by this library.
As I understand, code 2391 signifies that a connection has successfully been established, albeit ignoring the provided SSL/TLS settings, re-using the configuration of an existing connection instead.
Looking at the upstream library,
mq-golang
, shows thathttps://github.com/ibm-messaging/mq-golang/blob/2a31ece25fbfa7a78a1bb49ce4968a6eda35e68d/ibmmq/mqi.go#L259-L262
seems to possibly return both a connection and an error on a non-OK return code, but here in
mq-golang-jms20
mq-golang-jms20/mqjms/ConnectionFactoryImpl.go
Lines 147 to 177 in b349e76
a connection context is only returned if the return code says no errors occurred.
In my opinion, this prevents both using or closing the connection, causing a connection leak in this case.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: