mirror of https://github.com/OpenKMIP/PyKMIP.git
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:
parent
9fc9c62887
commit
8e82438f25
|
@ -40,7 +40,7 @@ class KMIPProtocol(object):
|
||||||
header = self._recv_all(self.HEADER_SIZE)
|
header = self._recv_all(self.HEADER_SIZE)
|
||||||
except RequestLengthMismatch as e:
|
except RequestLengthMismatch as e:
|
||||||
if e.received == 0:
|
if e.received == 0:
|
||||||
raise EOFError("No request to process")
|
raise EOFError("No data read from socket")
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
msg_size = unpack('!I', header[4:])[0]
|
msg_size = unpack('!I', header[4:])[0]
|
||||||
|
|
Loading…
Reference in New Issue