I have just spent to the few days looking into a problem which I may have
found a solution to --
First -- the problem
I am using web tags to generate a web page. Some of the items in
the generated page
are retrieved via VW (e.g. a css file, some jpg files). Note that
these files do not reside
on the webserver, only the VW server.
The user displays the page -- no problem.
The user presses refresh -- the screen sometimes displays with no
apparent css and
also sometimes with no (or only some) of the jpg images showing
Apache complains that it did not see a header for the damaged or
missing files.
VW claims to have sent them correctly.
Apparently mod-perl2 sends and flushes (arbitrarily) the whole response
from VW,
while apache wants the headers in one chunk, then one can do what one
wants for
the rest of the data. In mod-perl2 there are special functions for
supplying the header,
but we cannot use those as they are intended to replace simple "print
content-type..." type
statements.
My fix was to modify the perl script to gather up the incoming response
file until it
found a blank line (there should not be any blanks in the header, only
at the end of
the header). When it sees the blank line, it prints and flushes the
accumulated text,
then just reads and prints. To keep things clean I force flush STDOUT
before
starting any of the above.
If this problem exists using perl, I am wondering if it also exists
using the cgi relay?
I would expect it might depending on how the response is handled.
--
Dennis Smith +1 416.798.7948
Cherniak Software Development Corporation Fax: +1 416.798.0948
509-2001 Sheppard Avenue East
[hidden email]
Toronto, ON M2J 4Z8 sip:
[hidden email]
Canada
http://www.CherniakSoftware.comEntrance off Yorkland Blvd south of Sheppard Ave east of the DVP
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc