-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mllp server can't handle smartHL7 message sender when multiple messages are sent one after next #37
Comments
Hi @kundeng,
then the answer is no, the implementation doesn't handle it as two separated messages. |
I performed some tests: the server doesn't consider them as two messages also if you send them separated by mllp chars. In this case it reads the first and ignore others. |
Hi, the following tweak will work, however it may need to tweaked further to close long-waiting receiving sockets:
|
@kundeng The methods above worked correctly as expected with Samsung Geo HC10. Thanks. Would it be there in the next version? I extended the handle method for now. |
I also run into this issue. So basically the self.request.close() closes the socket. The client has to connect again. What is the benefit if the server closes socket connection for every message? Isn't that some sort of timeout can be used to close the connection. There are use cases where a large number of observations need to be uploaded. If every message needs to connect again instead of reuse the same socket connection, I wonder if the performance could be affected for both client and server. The above code has a 'while True' which is not the ideal solution either. Maybe closing for every message is a cleaner solution? |
Was there ever a follow up on this? The solution that @kundeng proposed worked for me, but I am curious if a production-level implementation was ever considered? |
Additionally, thank you @kundeng for this solution! I +1'd your answer. Would love to hear how this ended up working for you and/or if you modified it at all? |
Hi,
I am using smartHL7 message sender http://smarthl7.com/tools.html along with your mllp server for a project.
It seems that when I send one message at a time, your mllp server can handle it correctly. However, if I try to send multiple messages one after next, it will fail with network errors.
This may not be a bug, depending on whether or not your code supports this kind of streaming or not.
My guess is that the client is trying to send all messages in one socket connection and it assumes that the server will split them up correctly.
How do I tweak your code to handle this scenario?
The text was updated successfully, but these errors were encountered: