This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
HTTPSClient::connected() hang when _sslClient is NULL #22
Comments
Hi @yaweiw, We can definitely add a NULL check for prevent it crashing. Could you please share an example sketch and steps to reproduce the issue. I'm curious as to how you are encountering this issue. uint8_t HTTPSClient::connected()
{
return (_sslClient ? _sslClient->connected() : false);
} |
@sandeepmistry it can easily be reproduced by not having below lines in your ino file. |
I think a better fix is changing Would you have time to submit a PR for this? |
@sandeepmistry Ok. I'll have a look later. |
yaweiw
added a commit
to yaweiw/AzureIoTHub
that referenced
this issue
Aug 15, 2016
Merged
Closed via #24. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
uint8_t HTTPSClient::connected()
{
return _sslClient->connected();
}
when _sslClient is null, HTTPSClient::connected() hangs indefinitely. This doesn't seem right. Can we have some notification via e.g. serial port rather than completely unresponsive?
The text was updated successfully, but these errors were encountered: