Altera_Forum
Honored Contributor
12 years agomodified webserver - application crash under load
Hi,
I write this post after some many hours of debugging without result... I have taken over the Altera webserver provided with the Stratix V GX devkit (not the one included in NiosII EDS) and among changes I switched the transfer type from "Content-Length" to "Transfer-Encoding: chunked". The application works fine if the requests are made e.g. once a second, but if the page is refreshed several times a second, it hangs. My problem also is that I am not able to step-debug this problem: it seems throughput related so as soon as I switch to debugging mode everything works fine. Can anyone give me an idea what causes the problem or how I can figure out where it last crashed? I appreciate any help! PS: I have attached the original and the modified versions, all relevant changes are in webserver.c (function http_send_file_chunk).