 
   BearSSL::WiFiClientSecure client;
   client.setInsecure();
-  bool mfln = client.probeMaxFragmentLength("tls.mbed.org", 443, 1024);
+  bool mfln = client.probeMaxFragmentLength("tls.mbed.org", 443, 512);
   Serial.printf("\nConnecting to https://tls.mbed.org\n");
   Serial.printf("MFLN supported: %s\n", mfln ? "yes" : "no");
   if (mfln) {
-    client.setBufferSizes(1024, 1024);
+    client.setBufferSizes(512, 512);
   }
   client.connect("tls.mbed.org", 443);
   if (client.connected()) {

  yield();

  Serial.printf("\n\n");
  Serial.printf("Default SSL:        %d bytes used\n", a);
  Serial.printf("1024 byte MFLN SSL: %d bytes used\n", b);
}

// Released to the public domain

#include <ESP8266WiFi.h>
#include <PolledTimeout.h>

#ifndef STASSID
#define STASSID "your-ssid"
