Skip to content

Commit fdaad6b

Browse files
author
adrionics
authored
Merge branch 'master' into master
2 parents 7304f9b + 0bd36bf commit fdaad6b

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Arduino core for ESP8266 WiFi chip
33

44
# Quick links
55

6-
- [Latest release documentation](https://arduino-esp8266.readthedocs.io/en/2.5.1/)
6+
- [Latest release documentation](https://arduino-esp8266.readthedocs.io/en/2.5.2/)
77
- [Current "git version" documentation](https://arduino-esp8266.readthedocs.io/en/latest/)
88
- [Install git version](https://arduino-esp8266.readthedocs.io/en/latest/installing.html#using-git-version) ([sources](doc/installing.rst#using-git-version))
99

@@ -36,7 +36,7 @@ Starting with 1.6.4, Arduino allows installation of third-party platform package
3636
#### Latest release [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/)
3737
Boards manager link: `https://arduino.esp8266.com/stable/package_esp8266com_index.json`
3838

39-
Documentation: [https://arduino-esp8266.readthedocs.io/en/2.5.1/](https://arduino-esp8266.readthedocs.io/en/2.5.1/)
39+
Documentation: [https://arduino-esp8266.readthedocs.io/en/2.5.2/](https://arduino-esp8266.readthedocs.io/en/2.5.2/)
4040

4141
### Using git version (basic instructions)
4242
[![Linux build status](https://travis-ci.org/esp8266/Arduino.svg)](https://travis-ci.org/esp8266/Arduino)

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ void WiFiClientSecure::_freeSSL() {
248248
_recvapp_len = 0;
249249
// This connection is toast
250250
_handshake_done = false;
251+
_timeout = 15000;
251252
}
252253

253254
bool WiFiClientSecure::_clientConnected() {
@@ -1009,6 +1010,9 @@ bool WiFiClientSecure::_connectSSL(const char* hostName) {
10091010
_x509_insecure = nullptr;
10101011
_x509_knownkey = nullptr;
10111012

1013+
// reduce timeout after successful handshake to fail fast if server stop accepting our data for whathever reason
1014+
if (ret) _timeout = 5000;
1015+
10121016
return ret;
10131017
}
10141018

libraries/ESP8266WiFi/src/include/ClientContext.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ class ClientContext
456456
}
457457

458458
_send_waiting = true;
459-
esp_yield();
459+
// This delay will be interrupted by esp_schedule on next received ack
460+
delay(_timeout_ms);
460461
} while(true);
461462
_send_waiting = false;
462463

tools/elf2bin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import sys
2626
import tempfile
2727

28-
fmodeb = { 'dout': 3, 'dio': 2, 'quot': 1, 'qio': 0 }
28+
fmodeb = { 'dout': 3, 'dio': 2, 'qout': 1, 'qio': 0 }
2929
ffreqb = { '40': 0, '26': 1, '20': 2, '80': 15 }
3030
fsizeb = { '512K': 0, '256K': 1, '1M': 2, '2M': 3, '4M': 4, '8M': 8, '16M': 9 }
3131

tools/platformio-build.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,16 @@ def scons_patched_match_splitext(path, suffixes=None):
135135
ElfToBin=Builder(
136136
action=env.VerboseAction(" ".join([
137137
'"$PYTHONEXE"',
138-
'"%s"' % env.subst(join(FRAMEWORK_DIR, "tools", "elf2bin.py")),
139-
"--eboot", '"%s"' % env.subst(join(
140-
FRAMEWORK_DIR, "bootloaders", "eboot", "eboot.elf")),
141-
"--app", '"%s"' % "$SOURCE",
138+
'"%s"' % join(FRAMEWORK_DIR, "tools", "elf2bin.py"),
139+
"--eboot", '"%s"' % join(
140+
FRAMEWORK_DIR, "bootloaders", "eboot", "eboot.elf"),
141+
"--app", "$SOURCE",
142142
"--flash_mode", "$BOARD_FLASH_MODE",
143143
"--flash_freq", "${__get_board_f_flash(__env__)}",
144144
"--flash_size", "${__get_flash_size(__env__)}",
145-
"--path", '"%s"' % env.subst(join(
146-
platform.get_package_dir("toolchain-xtensa"), "bin")),
147-
"--out", '"$TARGET"'
145+
"--path", '"%s"' % join(
146+
platform.get_package_dir("toolchain-xtensa"), "bin"),
147+
"--out", "$TARGET"
148148
]), "Building $TARGET"),
149149
suffix=".bin"
150150
)

0 commit comments

Comments
 (0)