Article delegate-en/3209 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3203@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] problem with CGI (not CFI) on Windows?
02 May 2006 12:30:56 GMT Martin Vetter <pnieabdyi-h3lluoef4rxr.ml@ml.delegate.org>


Hi Yutaka,

as of delegate 9.2.0 pre9 it seems CFI is working on Windows, thanks.
now I try to get a working "inline CGI mount" setup with delegate ...

I do something like:

   cat test.bat
   echo "Content-Type: text/plain"
   echo ""
   echo "Hello World!"

   cat test.c
   #include <stdio.h>
   main(){ printf( "Content-Type: text/plain\n\nHello World!\n" ) }

   gcc -o test.exe test.c

   dg9_2_0-pre11.exe DGROOT=tmp -P8000 SERVER=http MOUNT="/Test/*  
cgi:test.exe" -f -v

   dg9_2_0-pre11.exe DGROOT=tmp -P8000 SERVER=http MOUNT="/Test/*  
cgi:test.bat" -f -v

Browsing "http://localhost:8000/Test/test.exe"
(respectively "http://localhost:8000/Test/test.bat"),
I see something like this in the console:

   (WIN) 20:41.580 [1484] failed spawn(), terminate frozen child: 0
   (WIN) 20:41.596 [1484] spawn(c:...\test.exe) = 612, no response  
from child, 259,1/35

The browser receives nothing. Similar things happen using test.bat ...

Funny thing is: if I "ctrl-c" the delegated process
during the timeout period occuring before the "failed spawn()",
I *do* get output in the browser, but garbled like:

   Hello World!
   Status: 503 Service Unavailable
   Content-Type: text/plain

   the service is unavailable temporarily.

What would be a minimum working "inline CGI" setup with delegate 9.2?
Thanks and regards,

Martin Vetter


_____________________________
Martin Vetter (ilink)
mailto:pnieabdyi-h3lluoef4rxr.ml@ml.delegate.org


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V