Mongoose with Mbedtls gives an error when receiving packets larger than a certain size. #3090
-
Hello, I'm having the following problem while testing Mongoose with Mbedtls. It seems to only work when the server response is less than 536 bytes. Otherwise, if it's greater than that value, it only processes those 536 bytes and then throws an error.
The application initially performs a POST to obtain a token, this is the part that works correctly, then that token is used to access a resource by performing a GET, this is where it fails because the server response is greater than 536 bytes. Enabling debugging in Mongoose and mbedtls, when receiving the TLS OK frame I get the following: 5762 2 httpClientInterface.c:131:Even --- TLS handshake done! --- {"access_token":"bK-rx76hUsc5vClHHRLz9w","token_type":"bearer","expires_in":3600} For the case where the TLS frame is about 1K, I get the following: aa1f 2 httpClientInterface.c:131:Even --- TLS handshake done! --- Any idea what might be going on? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
It is impossible to see what you are doing wrong without seeing what you are doing. |
Beta Was this translation helpful? Give feedback.
-
Please see our documentation, and follow the guidelines in our tutorials. We do NOT do this, it interferes with the normal HTTP handling. Don't do this. |
Beta Was this translation helpful? Give feedback.
It is impossible to see what you are doing wrong without seeing what you are doing.
Our applications and examples do work, and are described in our tutorials.
Please see our documentation, and follow the guidelines in our tutorials.
Please sniff your network (using Wireshark, for example) and observe the traffic.
If, after your network inspection, you find an actual issue, feel free to open an issue, fill the issue template, and provide us with pertinent information (including useful network capture files; no snapshots, please attach capture files) in order to reproduce and fix the issue. We don't inspect your code for errors, please send the minimum piece of code that can reproduce the i…