infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
TLS problem
david_barr
We're having a TLS issue between Epic and Cloverleaf. We have potential workarounds for the issue, but none of them are great. This affects standard inbound HL7 TLS interfaces using MLLP (as opposed to HTTPS or something like that).
When we start an outbound Epic interface, it opens the TCP connection to Cloverleaf, but it doesn't start the TLS handshake until it has a message to send. This could potentially be hours later (days later in a test environment). When an inbound Cloverleaf interface receives a TCP connection, there is a 30 second timeout for the TLS handshake to occur, after that the connection is reset. During those 30 seconds all other interfaces in the process are non-responsive. Because Epic will restart the connection when it is reset, that means that all Cloverleaf interfaces in the same process as the problematic interface will not work until Epic has a message to send.
Cloverleaf development says that the issue is a "rare case" and we have workarounds, so they haven't offered a fix of the non-responsiveness problem. Their suggested workaround is to put each inbound TLS interface in its own process.
Epic says that Cloverleaf shouldn't have any expectation that the handshake will happen right when the TCP connection is opened. They've suggested that we make the Cloverleaf inbound threads be the clients when setting up the connection.
Other options I've considered are to disable TLS, use HTTPS instead of TLS or leave it the way it is and manually turn off interfaces if they don't have queued messages.
I'm posting here as a warning to others who are setting up these interfaces. It took a long time to realize what was happening, and it just seemed like the interfaces were sometimes unreliable.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Thanks, David, for the heads up.
This should save others time.
I have my opinion on the matter as I am sure others do but this is valuable information making us forewarned.
What release of Cloverleaf?
david_barr
Cloverleaf 20.1.1.3.
RobertKersemakers
Thanks for the heads up, David.
I'm no expert in this, but googling around learns that "TLS handshakes occur after a TCP connection has been opened via a TCP handshake."
Big question is whether TLS handshake occurs
immediately
after TCP handshake. Normally I would say yes: it is weird to open up a TCP connection and then wait with setting up TLS until a message arrives. Why wait for that and add extra delay to that first message when you could have established TLS a long while ago.
So imho this should be solved by Epic: do the TLS handshake immediately after TCP handshake.
Also looked whether the TLS timeout can be shortened as another workaround, but can't find this in Cloverleaf.
david_barr
I don't think shortening the timeout would help unless we could also add a connection retry delay to the Epic side of the interface. Otherwise we would still be stuck in a repeating loop. I can check into that. Epic doesn't think they are doing anything incorrectly, so they don't want to spend time fixing it.
david_barr
This is from the TLS specification:
TLS is application protocol independent; higher-level protocols can layer on top of TLS transparently. The TLS standard, however, does not specify how protocols add security with TLS; how to initiate TLS handshaking and how to interpret the authentication certificates exchanged are left to the judgment of the designers and implementors of protocols that run on top of TLS.
RobertKersemakers
Hmm. But still not logical to open a TCP connection and then wait for the first message to do the TLS handshake.
Rob Abbott
Thanks for raising this David - I've asked R&D to take a second look and see if there's a way we can prevent blocking in this scenario.
Are you using pdl or the native tcpip driver? The tcpip driver may behave a little better as it's multithreaded under the covers.
david_barr
Thanks for looking into this. I'm using the PDL driver. I can test the TCP/IP.
david_barr
It looks like the native tcpip driver is working better. I'll have to test it longer to see if that totally fixes the issue. Thanks again.
RobertKersemakers
Good to hear!
Note to self: have a look whether we should/could replace pdl-driver with native tcpip driver. Right now we are still using pdl driver a lot.
Rob Abbott
[quote quote=120058]It looks like the native tcpip driver is working better. I’ll have to test it longer to see if that totally fixes the issue. Thanks again.
You are welcome! Please let us know the results of further testing. Thanks David!