We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e563e commit 4cedb61Copy full SHA for 4cedb61
libraries/SocketWrapper/src/MbedClient.cpp
@@ -150,6 +150,11 @@ int arduino::MbedClient::connectSSL(SocketAddress socketAddress) {
150
return 0;
151
}
152
153
+ /* For TLS connection timeout needs to be configured before handshake starts
154
+ * otherwise socket timeout is not adopted. See TLSSocketWrapper::set_timeout(int timeout)
155
+ */
156
+ sock->set_timeout(_timeout);
157
+
158
restart_connect:
159
nsapi_error_t returnCode = static_cast<TLSSocket *>(sock)->connect(socketAddress);
160
int ret = 0;
0 commit comments