[Here](https://github.com/arduino-libraries/ArduinoBearSSL/blob/ff4b17d80c278012f13242f553837a25b17c015e/src/BearSSLClient.cpp#L513) the connection might already by closed but there may still be data available in the client's buffer. To work correctly, it should be changed to `return c->read(buf, len);`