-
Notifications
You must be signed in to change notification settings - Fork 87
Description
Hello, I'm using this library to perform some health check on a HL7 service that is receiving messages.
The logic is: everything is good if I have back a message (AA or AE doesn't matter), but give me an error if the service does not respond or the answer is not understandable (HL7 standard).
I'm trying to trap the possible errors on the MLLPClient call, and it throws me error if the service's port is closed/firewalled or if the service doesn't respond at all to my send_message .
The problem is: If perform this health check and the server doesn't respond but does not close the socket, the MLLPClient blocks my health check. In other words it seems there is not any timeout implemented.
Is there any chance to have this kind of timeout implemented? I have tried to do it myself, modifying the client.py, but unsuccessfully... Can you help me? Thanks