Upload file with TLS #2779
-
Hi, We are currently testing the integration of Mongoose 7.14 in our project. For uploading files we have used the example of
When we do the same with TLS, we have got an error, below are some of the logs when the upload ends:
what can be done to avoid this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What you refer to, is a demo on how to deal with several issues. The upload process is described in this tutorial https://mongoose.ws/documentation/tutorials/http/file-uploads/ Lines 7493 to 7504 in 6cb1c3c Internal buffers are being exhausted due to some reason I can't pinpoint because you modified our code to fit your purpose. If you read our docs, https://mongoose.ws/documentation/#build-options , you'll see
where 3 * 1024 * 1024 = 3145728, or 3MiB Then, if there is an actual issue, please open an issue, honor the issue template so we can know your scenario and reproduce the issue if necessary, and let us know exactly what you are doing |
Beta Was this translation helpful? Give feedback.
What you refer to, is a demo on how to deal with several issues. The upload process is described in this tutorial https://mongoose.ws/documentation/tutorials/http/file-uploads/
The example as is does not have provisions to deal with TLS, so probably what you did, when you modified our code, is not correct or does not apply for that scenario
MG_MAX_RECV_SIZE
mongoose/mongoose.c
Lines 7493 to 7504 in 6cb1c3c