CGI's - can they return quick and then continue doing something?

2007-02-06 Thread David Bovill

I have not had to do this before - or rather I tired once and failed -
but thought Id ask before trying again... essentially can a CGI
return an OK to the Rev client and continue with the execution of the
script? This would avoid the Rev client locking up waiting for the cgi
to return.

In my case I have a graphic intensive application on the web server (
a renderer) which i want to activate from Rev to create images on the
web site. It may take a minute or so to create the image on the
server... so whats the best strategy? I was thinking either to et the
CGI to return early and allow the client to manually or automatically
refresh the image display, or secondly to do an asynchronous call to
the CGI I guess by using load?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: CGI's - can they return quick and then continue doing something?

2007-02-06 Thread jbv


David,

 I have not had to do this before - or rather I tired once and failed -
 but thought Id ask before trying again... essentially can a CGI
 return an OK to the Rev client and continue with the execution of the
 script? This would avoid the Rev client locking up waiting for the cgi
 to return.

in theory, this is feasable. But I've experienced strange behaviours with
browser clients (especially IE6 on XP) that sometimes seems to wait for
the cgi to really end before refreshing the web page content, although
it was obvious that the client had received the OK from the cgi a couple
of seconds before...
I must confess I never really understood why... it seems however that
this behaviour occured when the cgi AND the web page content (HTML
+ js) were especially complex (more than 1000 lines on both sides).

Finally I got used to fine tune my cgi scripts so that any task completes
within 1 or 2 sec, so that the OK can be returned to the client when the cgi
task is really completed... I haven't made any test with a Rev standalone
as client though... Things might be different...

JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution