arduino-esp32/libraries/WiFi
dyarkovoy a0c975dfbc Reset retry counter upon successful write (#2638)
Currently  WiFiClient::write is unable to send messages over 25Kb, because of the hard-coded retry limit of 10, that is getting decremented on every successful send. Since we cannot send more than 2*MTU bytes in one go, and have only 10 retries, write() is limited to approximately 25Kb. Technically it is not a bug, as it correctly returns the number of sent bytes and the caller can set up futher retries. But not all libs are aware of this behavior, for example, WebServer is not.
I suggest improving current behavior by resetting retry counter every time we had a successful write, so the limit of 10 retries will apply to Failed writes only, and will not apply to Successful writes. This will allow to write() blobs of arbitrary sizes.
2019-04-10 02:41:29 +02:00
..
examples Clarified comments and debug messages in WiFiClient Example (#2389) 2019-02-14 12:59:55 +01:00
src Reset retry counter upon successful write (#2638) 2019-04-10 02:41:29 +02:00
keywords.txt initial import 2016-10-06 07:09:44 -06:00
library.properties initial import 2016-10-06 07:09:44 -06:00