Skip to content

BearSSL_Sessions.ino does not demonstrate faster connection with session #8505

Closed
@DarioGHub

Description

@DarioGHub

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP-12]
  • Core Version: [3.0.2]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Nodemcu]
  • Flash Mode: []
  • Flash Size: [4MB]
  • lwip Variant: [v2 Lower Memory]
  • Reset Method: []
  • Flash Frequency: [80Mhz]
  • CPU Frequency: [80 & 160 Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200]
  • Debug port: [Disabled or Serial]
  • Debug Level: [None or SSL+TLS_MEM+HTTP_CLIENT+HTTP_SERVER]

Example sketch does not demonstrate faster connection when "Connecting again with the initialized session..."

MCVE https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/BearSSL_Sessions/BearSSL_Sessions.ino

Serial output:
Connecting without sessions...Trying: api.github.com:443...BSSL:_connectSSL: start connection...
Total time: 2786ms

Connecting with an uninitialized session...Trying: api.github.com:443...BSSL:_connectSSL: start connection...
Total time: 2681ms

Connecting with the just initialized session...Trying: api.github.com:443...BSSL:_connectSSL: start connection...
Total time: 2675ms

Connecting again with the initialized session...Trying: api.github.com:443...BSSL:_connectSSL: start connection...
Total time: 3137ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions