===== SPAM: Problems with FastCGI's FCGX_SetExitStatus()
"Frank Haferkorn" <[email protected]> Tue, 16 Jul 2013 11:28:06 +0200
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <457462DC6F930B4E953F1AE5563149E3366A26@SERVER.RST-AUTOMATION.local> |
This is a multi-part message in MIME format.
--===============5577357647863514627==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CE8206.C7A55D66"
This is a multi-part message in MIME format.
------_=_NextPart_001_01CE8206.C7A55D66
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Dear fastcgi-developers mailing list members,
=20
I have a problem to return an ExitStatus of my own choice...
I us ethe OpenMarket FastCGI=20
=20
I use a hiawtha website=20
Hiawatha version: 8.8
Operating System: Windows 7 (cygwin)
I compiled the FastCGI library myself using cygwin.
I have problems to set the Exit Code of a FastCGI Script I am using =
inside
main!.
I don't get any changes of this ErrCode. It seems as not to be =
available!
What is wrong in this code?
Did I miss any special settings in configuration before compilation?
=20
+++++++++++++++++++
FCGX_Init();
sock =3D FCGX_OpenSocket(socketName, 5);
for (FCGX_InitRequest(&request, sock, 0); // Init FCGX Operation
FCGX_Accept_r(&request) >=3D 0;
FCGX_Finish_r(&request))
{
res =3D handle_request(&request);=20
FCGX_SetExitStatus(510, request.in);
}
+++++++++++++++++++
I don't know where to read the version of ths fastcgi library I used, b
=20
But PERHAPS this might help...
In the manpage the Command FCGI_SetExitStatus has this tag:
=20
HISTORY
Copyright (c) 1996 Open Market, Inc.
See the file "LICENSE.TERMS" for information on usage and =
redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
$Id: FCGI_SetExitStatus.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg =
Exp $
=20
-------------------------------------------------------------------------=
----
RST Industrie Automation GmbH * Carl-Zeiss-Str. 51, D-85521 Ottobrunn=20
Tel. +49-89-9616018-20 * Fax +49-89-9616018-10 * =
http://www.rst-automation.de
<http://www.rst-automation.de>=20
=20
Gesch=E4ftsf=FChrer: Dipl.-Ing.(FH) Robert Schachner=20
Amtsgericht M=FCnchen: HRB 103 626 * ID-Nr. DE 811 466 035
-------------------------------------------------------------------------=
---
=20
------_=_NextPart_001_01CE8206.C7A55D66
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"><meta name=3DGenerator content=3D"Microsoft Word =
12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DDE link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-GB>Dear fastcgi-developers mailing list =
members,<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p> </o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>I have a problem to return an ExitStatus of my own =
choice...<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>I =
us ethe OpenMarket FastCGI <o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><o:p> </o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>I use a hiawtha website =
<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>Hiawatha =
version: 8.8<br>Operating System: Windows 7 =
(cygwin)<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>I =
compiled the FastCGI library myself using =
cygwin.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><br>I have problems to set the Exit Code of a FastCGI =
Script I am using inside main!.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>I don’t get any changes of =
this ErrCode. It seems as not to be available!<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><br>What is wrong in this =
code?<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>Did I =
miss any special settings in configuration before =
compilation?<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p> </o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><br>+++++++++++++++++++<br>FCGX_Init();<br>sock =3D =
FCGX_OpenSocket(socketName, 5);<br>for (FCGX_InitRequest(&request, =
sock, 0); // Init FCGX Operation<br>FCGX_Accept_r(&request) >=3D =
0;<br>FCGX_Finish_r(&request))<br>{<br>=A0=A0=A0=A0=A0 res =3D =
handle_request(&request); =
<br><b><i><u>=A0=A0=A0=A0FCGX_SetExitStatus(510, =
request.in);<br></u></i></b><br>}<br>+++++++++++++++++++<o:p></o:p></span=
></p><p class=3DMsoNormal><span lang=3DEN-GB>I don’t know where =
=A0to read the version of ths fastcgi library I used, =
b<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p> </o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>But PERHAPS this might help...<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>In the manpage the Command =
FCGI_SetExitStatus has this tag:<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><o:p> </o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>HISTORY<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>=A0=A0=A0=A0 Copyright (c) 1996 =
Open Market, Inc.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>=A0=A0=A0=A0 See the file "LICENSE.TERMS" for =
information on usage and redistribution<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>=A0=A0=A0=A0 of this file, and for =
a DISCLAIMER OF ALL WARRANTIES.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>=A0=A0=A0=A0 </span>$Id: =
FCGI_SetExitStatus.3,v 1.1.1.1 1997/09/16 15:36:25 stanleyg Exp =
$<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:Consolas'>-------------------------=
----------------------------------------------------<o:p></o:p></span></p=
><p class=3DMsoNormal><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:Consolas'>RST Industrie Automation =
GmbH * Carl-Zeiss-Str. 51, D-85521 Ottobrunn <o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:Consolas'>Tel. +49-89-9616018-20 * =
Fax +49-89-9616018-10 * </span><span =
style=3D'font-size:10.5pt;font-family:Consolas'><a =
href=3D"http://www.rst-automation.de"><span =
lang=3DEN-GB>http://www.rst-automation.de</span></a></span><span =
lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:Consolas'><o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span><=
/p><p class=3DMsoNormal><span lang=3DEN-GB =
style=3D'font-size:10.5pt;font-family:Consolas'>Gesch=E4ftsf=FChrer: =
Dipl.-Ing.(FH) Robert Schachner <o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>Amtsgericht M=FCnchen: =
HRB 103 626 * ID-Nr. DE 811 466 035<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>-------------------------=
---------------------------------------------------<o:p></o:p></span></p>=
<p class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------_=_NextPart_001_01CE8206.C7A55D66--
--===============5577357647863514627==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
--===============5577357647863514627==--