Which version is this ?
On 21/12/2007, gengw2000 <[EMAIL PROTECTED]> wrote:
>
> Hi valenok,
> I am using your shttpd in windows XP. But I found the shttpd.exe wil
> consume 99% CPU after some time.
> And I think it might be caused by NOD32 antivirus program because only
> computers with NOD32 installed on have this problem.
>
> You may reproduce this issue following below steps:
> 1. Write a simple cgi file "1.c" and compile it. (I will attach the code
> below).
> 2. Put "1.exe" under shttpd www/cgi-bin directory.
> 3. Open 5 browers to navigate "http://localhost/cgi-bin/1.exe". This
> page will automaticly refresh itself every second.
> 4. After runing for 20 minutes, you will see the problem. It usually is
> CPU 99%, sometime will prompt a runtime error dialog.
>
> I tried to track the execution and found this problem always occurs when
> closesocket() is called.
>
> Thanks
> Bruce
>
> -----------------------------------------
> source of 1.c:
>
> #include <stdio.h>
> #include <string.h>
>
> #define LF 10
>
> void main()
> {
> const char s[] = "<html><head><meta http-equiv=\"refresh\"
> content=\"1\"/></head><body><center>Hello World!</center></body></html>";
> printf("Connection: close%c", LF);
> printf("Content-Length: %d%c", strlen(s), LF);
> printf("Content-type: text/html%c%c", LF,LF);
>
> printf("%s", s);
> }
>
>
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general