-
Notifications
You must be signed in to change notification settings - Fork 399
SSL read fails with big chunks of data. #133
Comments
Doing further research I found this : espressif/ESP8266_RTOS_SDK#142 |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Hi @nemidiy , I am facing a similar issue when sending out large (>1Kb) MQTT message . I would like to know how you solved the issue if you have, if not did you consider changing to other ssl Library? I am using Arduino/esp8266 SDK along with async-mqtt-client library and desperately need a solution to this problem. Pls help. |
Also , can you tell me how do you have this much space |
hey @alphabeta1212 , I ended up moving to ESP32, but essentially my problem was that since I was using SSL, and decrypting is a rather heavy task for the MCU, my producer (a script pushing a chunk of OTA firmware into the MQTT broker) was too fast for my MCU (the consumer). The only way I found to have it working is while taking this bug chunks of data stop doing whatever Here is the entire story : |
Thats right. thanks for the reply and suggestion. By the way my problem was solved on changing the LWIP variant. |
Hi all,
I am actually coming from a a different project that leverages on this lib to implement an MQTT client.
One of the features I am trying to get working is OTA updates through MQTT over TLS.
The problem I see is that when the payload is sent over the TCP channel the ESPAsyncTCP lib fails reading the SSL buffer and kills the tcp connection.
This is what I get from the debug messages :
The log shows that the SSL connection is healthy until .232 (mqtt broker) starts sending bigger chunks of data the size of the MTU (1460) passes them on to SSL layer and the read error happens. I also did a trace with tcpdump to see what was going on. here you can see that after the forth ~1516 size package the connection gets closed by .201 (the nodemcu)
https://imgur.com/a/q1I5g6J
I am an outsider when it comes to SSL to be honest so I am not sure this is a problem of the lib
or something different. I would appreciate any help.
Thanks!
The text was updated successfully, but these errors were encountered: