This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unpredictable behavior when uploading large (~4MB) files to boa webserver

Other Parts Discussed in Thread: DM385

Hi everyone,

I'm running IPNC RDK 3.5 on DM385.

When trying the firmware update feature via http, I've noticed that theres often some unpredictable behavior occuring with boa webserver

Sometimes the upload works well, other times the file gets uploaded but the data gets corrupted with the HTTP header appearing in the middle of the file's binary data.

Other times, I get a glibc() error or SIGSEGV and boa crashes.

I've tried to debug the issue by adding vairous debug prints throughout the program's flow. This in turn slowed down the server's operation and temporarily resolved the problem - the file upload worked well every single time.

It seems like there is some kind of buffer underrun occuring in one of the file descriptors being used during the data transfer but I can't really point my finger on anything specific.

Could somebody share some knowledge regarding this issue or similar ones?