SimpleMLLPClient timeout error #417
Replies: 2 comments
-
@dib0 is this something you can help with? @jorge-zapata-medstone, @dib0 is the author of the nhapitools library. |
Beta Was this translation helpful? Give feedback.
-
Hi, TCP connections can timeout. Most systems should keep the TCP connection for HL7 messages open, so a timeout shouldn't happen too often. If it does, please check with the vendor or specs of the other system. You can decrease the timeout when calling the constructor. The default setting is 30 seconds (check below). You can set it to whatever timeout you want (it is in milliseconds). For example (10 seconds): On a timeout the method should send a TimeoutException, do your receive those? Hope this helps! BTW the github repo for NHapiTools is over here: |
Beta Was this translation helpful? Give feedback.
-
Description:
Im having problems with the
SimpleMLLPClient
from the nhapiTools library i know this is not the same library but i was wondering if anyone has had any issues where the connection would timeout?.Code:
In the example above if the
CONNECTION_URL
or thePORT_NUMBER
is not available i never reach thecatch
portion of the code which leaves the program running indefinitely.Does anyone know how to catch this error or avoid it?
EDIT:
I just found out that i has a timeout of like 1-2 minutes is there a way i can reduce the timeout to idk 20-30 seconds?
Beta Was this translation helpful? Give feedback.
All reactions