From 8e82438f25ea46a93a72af802519f1de11f9e102 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 9 Oct 2018 14:05:49 -0700 Subject: [PATCH] Change EOFError text The old text made perfect sense when in a server context, trying to read requests from clients, but KMIPProtocol is also used by *clients* to read *responses*. Let's change it to something a little more request/response agnostic. --- kmip/services/server/kmip_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmip/services/server/kmip_protocol.py b/kmip/services/server/kmip_protocol.py index 0be8a41..4bb9d5f 100644 --- a/kmip/services/server/kmip_protocol.py +++ b/kmip/services/server/kmip_protocol.py @@ -40,7 +40,7 @@ class KMIPProtocol(object): header = self._recv_all(self.HEADER_SIZE) except RequestLengthMismatch as e: if e.received == 0: - raise EOFError("No request to process") + raise EOFError("No data read from socket") else: raise msg_size = unpack('!I', header[4:])[0]