Nille:
> > > If you're expecting to find a CF-based chat program which
> > > doesn't rely on automatic page refreshes, don't hold your
> > > breath! That's outside the scope of what CF, or any other
> > > web application server for that matter, can do.
> >
> > That's not entirely true.
>...
> > You could always write a script that keeps serving a page and
> > never tells the browser that it is done so the browser keeps
> > loading it while content is being added by the script. I know
> > this can't be done using cf since the cf engine processes the
> > entire script until it's done before handing it over to web
> > server for serving, but any jsp engine, or even asp, could do
> > this.
Dave Watts:
>Yikes!
>
>Well, you're certainly right about that; you can do that in ASP and other
>environments. I'm kind of glad you can't do that in CF, though, and here's
>why.
>
>CF, when you start it up, creates a set of threads, and when it receives
>requests, it sends each request to a thread for processing. It never creates
>new threads, so if you did this with CF, you'd only be able to support as
>many users as you had threads for. The number of threads you'd have is set
>in the CF Administrator under "Number of simultaneous requests". Now, I seem
>to recall that Perl, used as a CGI program, spawns a new thread for each
>request, but I don't know if Perl does that when run as an ISAPI module, and
>I don't think ASP spawns a new thread for each request either.
>
>So, in short, you'd want to be really careful with this, unless you're sure
>you can generate new threads for each request, or you're never going to have
>to support more than five or six users at a time on a single web server.
Off course you're right on all points Dave. Just wanted to prove that it
can be done.
Never said it was an efficient way to do it ;-)
However; if you want to try my solution here are a couple of pointers:
* use an nph-script so that the web server does not buffer the data
* don't wait too long between "data bursts" because the server will time out
* streaming jpg:s done this way won't work with iis (pore man's push done
"the nille way" seems to work better on NS)
* the browser need to be HTTP/1.1 compliant
//Nille
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.