8000 Respect timeout with SSL by d-a-v · Pull Request #8899 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Respect timeout with SSL #8899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add an https client example comment for MFLN
  • Loading branch information
d-a-v committed Apr 1, 2023
commit ae64f5b7711e51206fcc44e8e0512aa7931a0535
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ void loop() {
https.setTimeout(4000); // or: client->setTimeout(4000);
client->setHandshakeTimeout(10000);

#if 1
// Try to reduce RAM footprint when SSL server allows it
constexpr int sslbufsize = 1024;
bool mfln = client->probeMaxFragmentLength(jigsaw_host, jigsaw_port, sslbufsize);
Serial.printf("Can reduce SSL footprint to %d bytes in RAM: %s\n", sslbufsize, mfln ? "yes" : "no");
if (mfln) { client->setBufferSizes(sslbufsize, sslbufsize); }
#endif

Serial.print("[HTTPS] begin...\n");
if (https.begin(*client, jigsaw_host, jigsaw_port)) { // HTTPS
Expand Down
0