When EthernetClass::socketRecvAvailable() is called multiple times, i.e. to wait for a minimum number of chars to reac, the returned number of recived bytes is not updated in between.
SSLClient (https://github.com/govorox/SSLClient.git) needs this in ssl__client.cpp, where in client_net_recv_timeout the process will wait until the expected number of bytes is received or a timeout is triggers.
When
EthernetClass::socketRecvAvailable()
is called multiple times, i.e. to wait for a minimum number of chars to reac, the returned number of recived bytes is not updated in between.SSLClient (https://github.com/govorox/SSLClient.git) needs this in ssl__client.cpp, where in
client_net_recv_timeout
the process will wait until the expected number of bytes is received or a timeout is triggers.This solves the problem I have with SSLClient