Skip to content

Commit 93c0639

Browse files
authored
Change variable name in send_ssl_data
1 parent d3f6214 commit 93c0639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/WiFiClientSecure/src/ssl_client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,11 @@ int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, size_t len
374374
log_v("Writing HTTP request with %d bytes...", len); //for low level debug
375375
int ret = -1;
376376

377-
unsigned long send_start_time=millis();
377+
unsigned long write_start_time=millis();
378378

379379
while ((ret = mbedtls_ssl_write(&ssl_client->ssl_ctx, data, len)) <= 0) {
380-
if((millis()-send_start_time)>ssl_client->socket_timeout) {
381-
log_v("SSL write timeout.");
380+
if((millis()-write_start_time)>ssl_client->socket_timeout) {
381+
log_v("SSL write timed out.");
382382
return -1;
383383
}
384384

0 commit comments

Comments
 (0)