Skip to content

Commit

Permalink
Merge pull request #36 from DMTF/missing-len
Browse files Browse the repository at this point in the history
Added missing len to packet size comparison
  • Loading branch information
mraineri authored Aug 2, 2024
2 parents 6f3f98b + 750c186 commit f10d55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RedfishEventListener_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_my_socket(active_socket):
while True:
more_data = active_socket.recv(PACKET_SIZE)
data = b''.join([data, more_data])
if more_data < PACKET_SIZE:
if len(more_data) < PACKET_SIZE:
break

response_array = data.decode("utf-8").split("\r\n")
Expand Down

0 comments on commit f10d55d

Please sign in to comment.