<div dir="ltr">You could try calling the program as CGI instead of FastCGI to try and pin down where the error is coming from. Also, you could run a FastCGI script in a different language (Perl?) and see if that works. I can&#39;t say, however, that I&#39;ve even used FastCGI on Windows.<br>
<br>Michael<br><br><div class="gmail_quote">On Thu, Nov 26, 2009 at 9:55 AM, Kevin Jardine <span dir="ltr">&lt;<a href="mailto:kevinjardine@yahoo.com">kevinjardine@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just to add more detail:<br>
<br>
I am running Apache 2.2.9. The message I mentioned appeared in the Apache error log file when running the sample Haskell FastCGI scripts under localhost with mod_fastcgi.<br>
<br>
I understand that there are some problems with mod_fastcgi and Apache 2.2.9, so I downloaded the Apache 2.2.9 version of mod_fcgid from here:<br>
<br>
<a href="http://www.apachelounge.com/download/" target="_blank">http://www.apachelounge.com/download/</a><br>
<br>
and tried that instead.<br>
<br>
I no longer get the error message I mentioned before, but instead get:<br>
<br>
[Thu Nov 26 08:44:30 2009] [warn] mod_fcgid: read timeout from pipe<br>
[Thu Nov 26 08:44:30 2009] [error] [client 127.0.0.1] Premature end of script headers: test2.fcgi<br>
<br>
Any suggestions?<br>
<br>
Kevin<br>
<br>
<br>
<br>
--- On Wed, 11/25/09, Kevin Jardine &lt;<a href="mailto:kevinjardine@yahoo.com">kevinjardine@yahoo.com</a>&gt; wrote:<br>
<br>
&gt; From: Kevin Jardine &lt;<a href="mailto:kevinjardine@yahoo.com">kevinjardine@yahoo.com</a>&gt;<br>
&gt; Subject: [Haskell-cafe] FastCGI under Windows<br>
&gt; To: <a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
&gt; Date: Wednesday, November 25, 2009, 10:44 PM<br>
<div><div></div><div class="h5">&gt; I&#39;m attempting to get FastCGI working<br>
&gt; with Haskell under Windows XP.<br>
&gt;<br>
&gt; However, all the sample code I&#39;ve tried always fails with:<br>
&gt;<br>
&gt; user error (FCGX_Accept_r failed with error code: -9999)<br>
&gt; unknown listenType (0)<br>
&gt;<br>
&gt; Has anyone seen this before? Any ideas on what I could try<br>
&gt; to get this to work?<br>
&gt;<br>
&gt; Kevin<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;      <br>
&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>