Bug fixed for large files in read_message(socket)