ARTEMIS-5163 Broker fails to send mqtt will message using mutual TLS#5956
Conversation
|
Thanks for the PR! |
|
There appears to be an issue with the test. The Do you see this same behavior when you run the test? |
|
I ran the tests on my local machine and both ( The approach of calling Do you see the same behavior when you change the parameterization to run only the |
Yes. All things being equal, using |
|
I tried to reproduce the test error and it seems that the latch countdown is slightly too low. Does the test run successfully with increased value (from 2 to 3 seconds)? |
54edb22 to
81bc640
Compare
No. I even increased it to In any case, you can work-around the issue like so: if (protocol.equals(WSS)) {
willSender.disconnectForcibly(0, 0, false);
} else {
// for some reason disconnectForcibly doesn't work in this case so we trick the broker into sending the LWT
getSessionStates().get(willSenderId).setFailed(true);
getSessionStates().get(willSenderId).setAttached(false);
} |
81bc640 to
7ab16ca
Compare
|
I added the workaround. Thanks! |
3ce4e05 to
56b0cf0
Compare
56b0cf0 to
b1ce5d7
Compare
|
I've moved |
The client's certificate is cached in order to successfully authenticate when sending LWT using mutual TLS. - move CertificateUtil to artemis-server - cache X509Certificate in NettyServerConnection - try to get certificate from channel if not already cached
b1ce5d7 to
b3d6e4d
Compare
|
LGTM and passed the full test suite. I'll leave for Justin to merge to check he is happy too. |
|
@JeanLucGraphalo, nice work! Thanks for the contribution. |
Implements a fix of bug ARTEMIS-5163.
The client's certificate is cached in order to successfully authenticate when sending LWT using mutual TLS.