Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Update w5x00_tcp_client_over_ssl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Giung951 committed Jan 14, 2022
1 parent 1931e88 commit 60e4fbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/tcp_client_over_ssl/w5x00_tcp_client_over_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ static int ssl_random_callback(void *p_rng, unsigned char *output, size_t output

static int recv_timeout(void *ctx, unsigned char *buf, size_t len, uint32_t timeout)
{
uint16_t rcv_len = 0;
uint16_t recv_len = 0;
uint32_t start_ms = millis();

do
{
getsockopt((uint8_t)(ctx), SO_RECVBUF, &rcv_len);
getsockopt((uint8_t)(ctx), SO_RECVBUF, &recv_len);

if (rcv_len > 0)
if (recv_len > 0)
{
return recv((uint8_t)ctx, (uint8_t *)buf, (uint16_t)len);
}
Expand Down

0 comments on commit 60e4fbd

Please sign in to comment.