Merge branch 'bugfix/fix_mqtt_high_thoughtput_failed' into 'master'

fix: high thoughput(payload>10KB, continuous send) causes to send failed

See merge request sdk/ESP8266_RTOS_SDK!694
This commit is contained in:
Dong Heng
2019-01-14 11:29:11 +08:00

View File

@ -155,7 +155,7 @@ static int esp_write(Network *n, unsigned char *buffer, unsigned int len, unsign
if (FD_ISSET(n->my_socket, &fdset)) {
do {
rc = send(n->my_socket, buffer + sentLen, len - sentLen, MSG_DONTWAIT);
rc = send(n->my_socket, buffer + sentLen, len - sentLen, 0);
if (rc > 0) {
sentLen += rc;