web stats
Permanent Connection with TCP Sender - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2017, 02:29 AM
gkittlaus gkittlaus is offline
OBX.3 Kenobi
 
Join Date: Jan 2012
Posts: 104
gkittlaus is on a distinguished road
Default Permanent Connection with TCP Sender

Hello,

is there a way to keep the connection open between a MirthConnect TCP Sender to another Server?
The Server is monitoring its own Socket and always states a warning after Mirth is closing the Socket when all messages have been sent. "Keep connection open" is only working if there are still messages to be sent.

Thanks in advance!
Reply With Quote
  #2  
Old 07-28-2017, 06:49 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

Set "Keep Connection Open" to yes
and "Send Timeout" to 0
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #3  
Old 08-01-2017, 12:08 AM
gkittlaus gkittlaus is offline
OBX.3 Kenobi
 
Join Date: Jan 2012
Posts: 104
gkittlaus is on a distinguished road
Default

Thanks!
Reply With Quote
  #4  
Old 04-16-2018, 04:23 PM
djantzen djantzen is offline
What's HL7?
 
Join Date: Mar 2018
Posts: 3
djantzen is on a distinguished road
Default Clarifying question about this behavior

If the timeout is hit and the connection is closed, what will cause it to reopen? Will new messages prompt a reconnect?

Thanks!
Reply With Quote
  #5  
Old 04-17-2018, 07:03 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,119
narupley is on a distinguished road
Default

Quote:
Originally Posted by djantzen View Post
If the timeout is hit and the connection is closed, what will cause it to reopen? Will new messages prompt a reconnect?

Thanks!
Yes, once the next message comes in the connection will be opened again.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #6  
Old 04-17-2018, 07:22 PM
djantzen djantzen is offline
What's HL7?
 
Join Date: Mar 2018
Posts: 3
djantzen is on a distinguished road
Default Thank you for the clarification!

What we are seeing is that one Mirth instance forwarding MLLP messages to a second Mirth instance gradually slows down and grinds to a halt, enqueuing messages on the first instance. We are on version 3.5.0.8232.

We have a simple example that demonstrates this in a local development environment. It appears that enabling the 'Keep Connection Open' option will cause the failure to occur after several thousand messages.

However, when we opt *not* to keep the connection open, it takes several tens of thousands of messages to be sent before the slowdown occurs and the queue expands. So, it's better, but still a problem.

To drain the queue we have to redeploy the channel to the sender Mirth instance, or restart it entirely.

Can you provide any suggestions about what might cause such behavior?

Thanks for your time,
David Jantzen
Reply With Quote
  #7  
Old 04-18-2018, 08:14 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

Underlying Network issue, queue settings, perhaps an issue delivering to the final destination....

Can you post your channels or at least a screen shot of the source and destination settings for each?

Has this issue always happened, or did something change?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #8  
Old 04-23-2018, 01:02 PM
djantzen djantzen is offline
What's HL7?
 
Join Date: Mar 2018
Posts: 3
djantzen is on a distinguished road
Default And I have to retract most of that...

It appeared at first that there was a difference between keeping the connection open versus reopening each time, but that did not turn out to be consistent. We see a backed up queue sporadically, regardless of the setting or the Send Timeout value.

It may indeed be an underlying networking issue. The Mirth servers actually run within their own Docker containers, and that additional abstraction layer may be hiding the problem. Something we fixed in this process was a DNS configuration in the containers that was causing 4 second delays in any network operation involving address resolution. That may yet turn out to be the root cause here, but again, it's not yet reproducible.
Reply With Quote
Reply

Tags
mllp, permanent, sender, tcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation