Skip to content

Commit acd0f23

Browse files
committed
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
2 parents 8567a9a + 87421bf commit acd0f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mqtt/paho/MQTTClient-C/src/FreeRTOS/MQTTFreeRTOS.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int esp_write(Network *n, unsigned char *buffer, unsigned int len, unsign
155155

156156
if (FD_ISSET(n->my_socket, &fdset)) {
157157
do {
158-
rc = send(n->my_socket, buffer + sentLen, len - sentLen, MSG_DONTWAIT);
158+
rc = send(n->my_socket, buffer + sentLen, len - sentLen, 0);
159159

160160
if (rc > 0) {
161161
sentLen += rc;

0 commit comments

Comments
 (0)