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.
This commit is contained in:
Tim Burke 2018-10-09 14:05:49 -07:00
parent 9fc9c62887
commit 8e82438f25
1 changed files with 1 additions and 1 deletions

View File

@ -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]