Current code calls socket.recv with the size of the json message from the struct_header; this assumes incorrectly that the message can be read in a single slurp. Instead, scoket.recv_into should be used to read in chunks until the full message is read.
Current code calls socket.recv with the size of the json message from the struct_header; this assumes incorrectly that the message can be read in a single slurp. Instead, scoket.recv_into should be used to read in chunks until the full message is read.