<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 27, 2015 at 12:58 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:</div><div class="gmail_quote">[...]<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
The same can be done with FastCGI if you use mod_fastcgi and ExternalFastCGIServer. We do that at work.<br>
Currently, I don't really see the added value in SCGI.</blockquote><div><br></div><div>yes yes, the idea to implement thats is just to adding support to a new protocol in Free Pascal, because SCGI seems easy to be implemented hehe... (several languages implement that)</div><div><br></div><div>Currently I'm using CGI in production, but soon I'll use FastCGI as proxy, because some times I need to debug the already published application, so using nginx or Apache proxy I can point the "Proxy Pass" to my application running in my PC and debug it.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
      The strange thing of scgi is that the spec is so vague, I am surprised there are any implementations...<br>
<br>
      Michael.<br>
<br>
<br>
Me too. But you can use the same CGI spec to get env. variables, query_string etc. SCGI is very easy to be implemented like CGI. I've<br>
tested this draft to get all fields of a HTML form with POST: <a href="https://gist.github.com/ArtemGr/38425" target="_blank">https://gist.github.com/<u></u>ArtemGr/38425</a>. I can adapt it to Pascal too.<br>
</blockquote>
<br></span>
Please do, because the current implementation is not really useful. Accepting a socket connection and writing some data is simply "TCP/IP for beginners" :)<br></blockquote><div><br></div><div>Hehehe =D</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Not to mention that it will block if the server sends more than 4k data.<br>
<br>
The real work is accepting content and parsing the headers. :)</blockquote></div><div><br></div><div>Yes, it can be implemented to read the buffer by demand like FCGI already does. =)</div><div><br></div>-- <br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>