DA_MUTEX_DESTROY(&(http_info->mutex_state));
DA_MUTEX_DESTROY(&(http_info->mutex_http));
DA_COND_DESTROY(&(http_info->cond_http));
- http_info->state = HTTP_STATE_READY_TO_DOWNLOAD;
- http_info->http_method = HTTP_METHOD_GET;
- http_info->content_len_from_header = 0;
- http_info->total_size = 0;
- http_info->error_code = 0;
NULL_CHECK_AND_FREE(http_info);
}
}
{
DA_LOGV("");
- http_info->state = HTTP_STATE_READY_TO_DOWNLOAD;
http_info->update_cb = __http_update_cb;
DA_MUTEX_INIT(&(http_info->mutex_state), DA_NULL);
DA_MUTEX_INIT(&(http_info->mutex_http), DA_NULL);
DA_COND_INIT(&(http_info->cond_http), DA_NULL);
+
+ DA_MUTEX_LOCK(&(http_info->mutex_state));
+ http_info->state = HTTP_STATE_READY_TO_DOWNLOAD;
+ DA_MUTEX_UNLOCK(&(http_info->mutex_state));
}
void __parsing_user_request_header(char *user_request_header,