add MSG_WAITALL flag to http_read_body()