mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-30 22:51:41 +01:00 
			
		
		
		
	esp_http_client: Fixed handling of EAGAIN return
For https connection `ESP_TLS_ERR_SSL_WANT_READ` of esp_transport_read was getting treated as error. Treated this as a timeout to fix connection abort issue! Also handled http connection EAGAIN with `errno == EAGAIN` check. Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
This commit is contained in:
		| @@ -327,6 +327,7 @@ esp_err_t esp_https_ota_perform(esp_https_ota_handle_t https_ota_handle) | ||||
|             } else if (data_read > 0) { | ||||
|                 return _ota_write(handle, (const void *)handle->ota_upgrade_buf, data_read); | ||||
|             } else { | ||||
|                 ESP_LOGE(TAG, "data read %d, errno %d", data_read, errno); | ||||
|                 return ESP_FAIL; | ||||
|             } | ||||
|             handle->state = ESP_HTTPS_OTA_SUCCESS; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user