1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
esp8266/libraries
Earle F. Philhower, III 529baabef8
Return data in internal SSL buffers after close (#4756)
When the TCP socket is closed there may be some data left in the
BearSSL internal buffers which can be read by the application.

The BearSSL pump, however, would always return no data available
in the case the socket was disconnected before checking if the
SSL was in a state where the app could possibly read.

Fix by returning if the state is available, even if the connection
is gone.  Eventually no more data will become available to read
and the original -1 will be returned.

This should match the existing axTLS ::connected() behavior.
2018-05-23 08:24:34 -07:00
..
2018-03-08 14:32:06 +08:00
2018-03-08 14:32:06 +08:00
2018-03-08 14:32:06 +08:00
2018-03-09 12:47:22 +08:00
2018-03-08 14:32:06 +08:00
2018-03-08 14:32:06 +08:00
2018-03-08 14:32:06 +08:00
2018-03-18 01:53:54 -03:00
2018-03-08 14:32:06 +08:00