Re: [Kepler-Project] Re: Reloading script on wsapi-fastcgi

2011-01-26 Thread Tiago Katcipis
On Tue, Jan 4, 2011 at 6:01 PM, Tiago Katcipis wrote: > > > On Tue, Jan 4, 2011 at 5:41 PM, Fabio Mascarenhas wrote: > >> If you want to run just a single, persistent WSAPI application it is much >> easier to use this as your idlocutor.fcgi script: >> >> >> pcall(require,"luarocks.require")

Re: [Kepler-Project] Re: Reloading script on wsapi-fastcgi

2011-01-04 Thread Tiago Katcipis
On Tue, Jan 4, 2011 at 5:41 PM, Fabio Mascarenhas wrote: > If you want to run just a single, persistent WSAPI application it is much > easier to use this as your idlocutor.fcgi script: > > > pcall(require,"luarocks.require") > > local fastcgi = require "wsapi.fastcgi" > local myapp = require

Re: [Kepler-Project] Re: Reloading script on wsapi-fastcgi

2011-01-04 Thread Fabio Mascarenhas
If you want to run just a single, persistent WSAPI application it is much easier to use this as your idlocutor.fcgi script: pcall(require,"luarocks.require") local fastcgi = require "wsapi.fastcgi" local myapp = require "myapp" fastcgi.run(myapp.run) Where myapp.run is your WSAPI entr

Re: [Kepler-Project] Re: Reloading script on wsapi-fastcgi

2011-01-04 Thread Tiago Katcipis
On Mon, Jan 3, 2011 at 11:27 AM, Tiago Katcipis wrote: > > > On Mon, Jan 3, 2011 at 11:15 AM, Fabio Mascarenhas wrote: > >> With isolated=true WSAPI will run your scripts in a pool of Rings, and >> will collect and respawn the Rings periodically, >> > > besides periodically, on any 4XX and on DELE

Re: [Kepler-Project] Re: Reloading script on wsapi-fastcgi

2011-01-03 Thread Tiago Katcipis
On Mon, Jan 3, 2011 at 11:15 AM, Fabio Mascarenhas wrote: > With isolated=true WSAPI will run your scripts in a pool of Rings, and will > collect and respawn the Rings periodically, > besides periodically, on any 4XX and on DELETE method it will be respawned too? just for curiosity :-). > so is

Re: [Kepler-Project] Re: Reloading script on wsapi-fastcgi

2011-01-03 Thread Fabio Mascarenhas
With isolated=true WSAPI will run your scripts in a pool of Rings, and will collect and respawn the Rings periodically, so isolated=false is the behavior you want, as you are only running a single script anyway. -- Fabio Mascarenhas On Wed, Dec 29, 2010 at 2:48 PM, Tiago Katcipis wrote: > > > On

[Kepler-Project] Re: Reloading script on wsapi-fastcgi

2010-12-29 Thread Tiago Katcipis
On Wed, Dec 29, 2010 at 11:31 AM, Tiago Katcipis wrote: > Hi all, > > I'm having some problem using wsapi-fastcgi with lighthttpd. I got > everything working fine, but every time an error occurs (any 4xx) or someone > send a DELETE method request my script is reloaded. I don't want the script > to