httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Massimiliano Pinto <massimiliano.pi...@gmail.com>
Subject Re: mod_include.c with ap_rflush
Date Wed, 12 May 2010 13:51:28 GMT
Hello Jérôme,

first ... thanks a lot for your reply and for the examples provided!


I'd like to post here to all, the possible feature of flushing the include
virtual on demand (no matter what is behind the /virtualpath: files or other
kind of content)

Now I can do:

- continue with the simple patch: what I did because I can manage the entire
job.
- another module handling a new tag (as your work) or why not ... a merge
with a similar one!
- wait for a positive feedback :-)


Lovers of dummy static files, another feedback is welcome!



Massimiliano Pinto


On Wed, May 12, 2010 at 9:09 AM, Jerome Renard <jerome.renard@gmail.com>wrote:

> Hello Massimiliano,
>
> On Mon, May 10, 2010 at 4:16 PM, Massimiliano Pinto
> <massimiliano.pinto@gmail.com> wrote:
> > Hi,
> > I have developed an tested a mod_include.c improvement (httpd 2.2.15).
> >
> > The module can now handle the "include uvirtual" command, where
> "uvirtual"
> > means "unbuffered".
> > If command is "include virtual" and 200 OK there is a call
> to ap_rflush(r).
> > I had this idea because is useful to send chunk (also with gzip) in a
> > controlled way to force the browser rendering with simple html files! Yes
> I
> > love static files ;-)
>
> I love them too :)
>
> >
> > Scenario:
> > 1 html file with 3 includes, nested included not tested now.
> >
> > Browsers behavior:
> > * Chrome and Safari (also with iPhone) need more bytes before starting
> the
> > render task.
> > * Explorer 8 and Firefox are ok with a few bytes.
> >
> >
> >
> > Here is an .html example:
> > <html>
> > <body>
> > <!--#include uvirtual="/header.html" -->
> > <hr>
> > <!-- 4 seconds sleep -->
> > <!--#include virtual="/sleep.php" -->
> > <!--#include virtual="/content.html" -->
> >
> > </body>
> > </html>
> >
> > The header comes first and then (4 seconds later) the content.
> >
> >
> > I'd love any feedback!
> >
>
> Even though I find the idea interesting, I am not qualified enough to
> say if that should go in trunk/ or not.
>
> However if this patch is part of something you have to deliver to a
> customer it would be more interesting
> to deliver your own module with the patch so it avoids patching the
> original mod_include module.
>
> You create create and/or override mod_include functions in your own
> module, you can find a few examples there :
> -
> http://github.com/jeromer/modmemcachedinclude/blob/master/src/ssi_include_memcached.c
> - http://www.bbc.co.uk/opensource/projects/apache/
>
> 'Hope that helps.
>
> Best Regards
>
> --
> Jérôme :)
>

Mime
View raw message