Skip to content

Is there any socket timeout implemented on MLLPClient? #18

@aventrax

Description

@aventrax

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions