I tried the following script:
<cfsetting requesttimeout="900" />
<cfset intStart = GetTickCount() />
<cfloop from="1" to="100" index="i">
<cfsleep time="1000">
<cfoutput>
<pre>
#GetTickCount()#
</pre>
</cfoutput>
<cfflush/>
</cfloop>
<cfset totaltime = (GetTickCount() - intStart) />
<cfoutput> TOTAL: #totaltime# </cfoutput>
But the cfflush not working as it should, instead of printing
information gradually, it prints everything in the end, after processing
the request.
I also tried with cfhttp, without success.
Armando
Tried it in both Chrome and Firefox, and again same behaviour.
Seems most likely to be something up with the way your environment is
configured. Maybe you have a web-server in front that is not passing
the content back immediately?
Thanks for the quick reply.
I'm testing in Railo 3.2.3.000 (stable) in LAN, without proxy and firewall.
It should print the info every 1 second, but prints everything after 100
seconds.
Armando
You'll need to check the documentation for whatever you're using to
see if it has an internal buffer, and if it can be configured to a
smaller size.
(My tests were with Jetty, so - at least with the version of that
which Railo bundles - there's no issue; can't guarantee other Jetty
versions don't have the problem though.)
Carl
I increased considerably the number of characters that are printed by
the loop, yet keep getting up after the request completed.
Att,
Armando Leite Junior
GrupoBWS
www.grupobws.com.br
socketBuffer | The size (in bytes) of the buffer to be provided for socket output buffering. -1 can be specified to disable the use of a buffer. By default, a buffers of 9000 bytes will be used. |