python-hl7
python-hl7 copied to clipboard
Use socket.sendall instead of socket.send
Close https://github.com/johnpaulett/python-hl7/issues/41
As pointed out in the issue, send does not guarantee that all of the data is sent. We have observed this behavior in production and using sendall fixes this, however I have until now been unsuccessful in reproducing it.
Nevertheless, here's a patch.