<div dir="auto"></div><div class="gmail_quote">---------- Forwarded message ----------<br>From: "Rob Marjot" <<a href="mailto:robmarjot@gmail.com">robmarjot@gmail.com</a>><br>Date: Jan 10, 2017 07:51<br>Subject: Re: [Qgis-developer] QGIS Server FCGI: retained data / deferred freeing of resources between requests<br>To:  <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>><br>Cc: <br><br type="attribution"><div dir="auto">Hi all,<div dir="auto"><br></div><div dir="auto">How about the switching between .qgs files for subsequent requests handled by a single fcgi instance?</div><div dir="auto"><br></div><div dir="auto">Hope someone can just shed a bit more light on this.</div><div dir="auto"><br></div><div dir="auto">Rob</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 9, 2017 10:18, "Rob Marjot" <<a href="mailto:robmarjot@gmail.com" target="_blank">robmarjot@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi list,<div dir="auto"><br></div><div dir="auto">Thanks Alessandro. Indeed, I started looking in to the source. It made me wonder: how does a QGIS Server fcgi instance go about varying MAP=... parameters in subsequent requests?</div><div dir="auto"><br></div><div dir="auto">From source it seems to me that the QgsProject object is retained across the handling of requests (by its fcgi loop). Yet: how about requests coming in that pass different "MAP=" parameters, selecting different .qgs files?</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">Rob<br><div dir="auto"><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 9, 2017 08:48, "Alessandro Pasotti" <<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>> wrote:<br type="attribution"><blockquote class="m_5907290173830446271m_529889478416839454quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>QGIS Server is being deeply refactored, and the new implementation is described in <a href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74" target="_blank">https://github.com/qgis/QGIS-E<wbr>nhancement-Proposals/issues/74</a><br><br></div>and: <a href="https://github.com/qgis/QGIS/pull/3866" target="_blank">https://github.com/qgis/QGIS/p<wbr>ull/3866</a><br><br>The current implementation has some limited caching of the capabilities (taken from the project .qgs file).<br></div><br></div>Note that with some performance degradation you can still run the server as plain old CGI.<br><br></div><div>AFAIK there are no documents about the implemementation: follow the source Luke :)<br> <br></div><div><br></div>Cheers.<br> <br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div class="m_5907290173830446271m_529889478416839454elided-text">On Mon, Jan 9, 2017 at 1:11 AM, Rob Marjot <span dir="ltr"><<a href="mailto:robmarjot@gmail.com" target="_blank">robmarjot@gmail.com</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_5907290173830446271m_529889478416839454elided-text"><div dir="ltr">Dear list,<div><br></div><div>I am currently evaluating QGIS Server as rendering backend for my new project; can you give me some insight in the architecture / implementation? To pose my question more specific: with QGIS Server being a fcgi application, what data (e.g. parsed .qgs file?) is retained and/or freeing of resources is deferred between requests?</div><div><br></div><div>Much appreciated if any of you can shed a bit of light to the implementation details of QGIS Server. Possibly there is technical documentation available online?</div><div><br></div><div>Thanks</div><span class="m_5907290173830446271m_529889478416839454m_-7688825177223525265HOEnZb"><font color="#888888"><div>Rob</div></font></span></div>
<br></div>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-developer</a><font color="#888888"><br></font></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_5907290173830446271m_529889478416839454m_-7688825177223525265gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</font></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div></div>
</div>