BugID:19073842:http send size = 0 see as failed
@@ -218,7 +218,7 @@ static int ota_download_start(void *pctx)
while (totalsend < nbytes) {
send = ((isHttps) ? ota_ssl_send(ssl, (char *)(http_buffer + totalsend), (int)(nbytes - totalsend))
:ota_socket_send(sockfd, http_buffer + totalsend, nbytes - totalsend));
- if (send < 0) {
+ if (send <= 0) {
ret = OTA_DOWNLOAD_WRITE_FAIL;
goto END;
}
