[En-Nut-Discussion] Question about CGI
Ole Reinhardt
ole.reinhardt at kernelconcepts.de
Tue Aug 22 10:02:17 CEST 2006
Hi,
> Everything works fine exept one thing: when I open webpage (with image
> from my cam) and then hit reload button before file transfer is
> finished, NutOS restarts.
> Why is it so ? Can anybody give me a hint please ? I thought that
> writing to a stream in a loop using fputc() can't be interrupted.
> Here is the cgi function that reads image from usart:
Mostly a NutOS restarts results from a buffer overflow or any other
invalid pointer access. Also this might happen if you try to access an
invalid file descriptor.
Just an idea: Could it be possible that you browser closes the
connection before you have transfered the whole file and you don't check
this condition in your code? Could also be a problem in one of your
mca25 functions? Perhaps they are not reentrant? (another cgi thread is
started before the other one has finished?)
Best regards,
Ole Reinhardt
--
kernel concepts Tel: +49-271-771091-14
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen E+ : +49-177-7420433
--
More information about the En-Nut-Discussion
mailing list