-
Notifications
You must be signed in to change notification settings - Fork 86
Description
MLLP client sends HL7 message properly, the server receives it, and tries to send ack message back. However, in many systems, probably due to low-level implementation details, HL7 ack message is divided into smaller chunks and send back as separate TCP packets.
MLLP client may receive the first \x0b
byte from the response, which is the beginning of the MLLP envelope, then it will close the connection, due to use of ctx manager. Client will never receive full MSH+MSA message. This is against the protocol, and may cause various problems on the other system starting with inability to confirm reception of the message on it's side.
I don't have any solution for this yet, but temporary solution would to read the response until some deadline before closing the connection.